610308f97c
offlineimap.py: fix shebang to python2
...
Expect more and more distributions to use python3 as default python binary.
This was previously done for bin/offlineimap but I forgot this file in the move,
as suggested by Chris.
Github-ref: https://github.com/OfflineIMAP/offlineimap/issues/530
Suggested-by: Chris Coleman <christocoleman@yahoo.com >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2018-03-04 04:28:30 +01:00
0f65469ce1
bin/offlineimap: fix shebang to env python2
...
The python executable will likely be set to python3 by default on more and more
distributions. Fix it to Python 2.
Github-ref: https://github.com/OfflineIMAP/offlineimap/issues/530
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2018-03-03 01:43:31 +01:00
ea5093bc5e
requirements: add gssapi as optional dependency
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2018-03-02 16:38:48 +01:00
88724949fa
Port to python-gssapi from pykerberos
...
python-gssapi has a visible, active upstream and a more pleasant
interface. python-gssapi is present in most distributions, while
pykerberos is slated for removal from Fedora/RHEL/CentOS.
Github-ref: https://github.com/OfflineIMAP/offlineimap/pull/529
Tested-by: Robbie Harwood <rharwood@redhat.com >
Signed-off-by: Robbie Harwood <rharwood@redhat.com >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2018-03-02 16:24:36 +01:00
c8847ccff9
make UI output show local AND remote dirs involved
...
Github-ref: https://github.com/OfflineIMAP/offlineimap/issues/525
Signed-off-by: Friedemann Schorer friedemann@schorers.org
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2018-02-24 01:13:40 +01:00
f732d6b2b6
maxsyncaccounts: improve documentation
...
Github-ref: https://github.com/OfflineIMAP/offlineimap/issues/520
Reviewed-by: Linus Arver <linusa@google.com >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2018-01-31 14:09:52 +01:00
67d35dbbcb
v7.1.5
...
Tested-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
Tested-by: Remi Locherer <remi.locherer@relo.ch >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2018-01-13 13:55:23 +01:00
0d6a9a44da
maxage: don't consider negative UIDs when computing min UID
...
With new emails we could have negative UIDs in come use cases. Exclude these
from the list of UIDs. The negative UIDs lead to invalid SEARCH command:
SEARCH command error: BAD ['Could not parse command']. Data: FMAO19 SEARCH (UID -4:*)
Github-ref: https://github.com/OfflineIMAP/offlineimap/issues/512
Tested-by: https://github.com/shubhamkrm
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-12-22 22:01:00 +01:00
e802f5fbd5
folder: IMAP: improve search logging
...
Log when exception occured during search command, too.
Github-ref: https://github.com/OfflineIMAP/offlineimap/issues/512
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-12-22 15:13:51 +01:00
e8b31af4c2
Initial commit of snapcraft.yaml
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-12-20 08:38:18 +01:00
a4b89f1034
github: remove the trick to download the PR
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-11-27 23:24:42 +01:00
3c6b07b25f
Add missing space to output string
...
It was previously printing "Upgrading LocalStatus cache from version 1to version 2 for XXX"
Signed-off-by: John Ferlito <johnf@inodes.org >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-11-26 18:05:10 +01:00
9805d3e7af
no UIDPLUS: improve logging on failures
...
When there is not UIDPLUS we have to figure the UID by our means. When this
process fails, we don't know if the email was successfully uploaded. This patch
provides better logs to explain what happened.
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-11-12 22:40:06 +01:00
681e271fc0
v7.1.4
...
Tested-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-29 15:23:29 +01:00
5836970d51
utf8foldernames: fix missing decode argument
...
Github-ref: https://github.com/OfflineIMAP/offlineimap/issues/502
Tested-by: https://github.com/pprw
Reviewed-by: Ilias Tsitsimpis <i.tsitsimpis@gmail.com >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-29 00:45:32 +02:00
a79263bb31
utf8foldernames: support --delete-folder with UTF-8 folder name
...
Github-ref: https://github.com/OfflineIMAP/offlineimap/issues/505
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-29 00:44:39 +02:00
ee17e3dc3c
Fix: if any tunnel (preauth_tunnel or transport_tunnel) the hostname should not be required
...
It's required to modify my change 1ce596d713
because a hostname shouldn't be needed if any tunnel is used. Both tunnels
provide a regular IMAP interface which is used by offlineimap.
Github-ref: https://github.com/OfflineIMAP/offlineimap/issues/503
Reported-by: Ilias Tsitsimpis <i.tsitsimpis@gmail.com >
Signed-off-by: Thomas Merkel <tm@core.io >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-27 20:03:17 +02:00
8c9cd5b7e3
contrib/release.py: email: don't write '<>' for message-id twice
...
Minor code refactoring.
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-08 16:39:56 +02:00
832c704443
contrib/release.py: website: add all changes to the commit
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-08 16:28:44 +02:00
0d65762168
contrib/release/py: fix the 'v' character in commit message
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-08 16:20:59 +02:00
e1a6feb2d5
v7.1.3
...
Tested-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
Tested-by: Remi Locherer <remi.locherer@relo.ch >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-08 15:58:10 +02:00
392e64c3b3
upcoming.py: get header template from external file
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-02 22:33:57 +02:00
a9514c2b8a
upcoming.py: display a message with the filename once written
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-02 21:57:39 +02:00
6b64f87462
provide non-zero exit code & display configuration mismatch error at the end of the run
...
This behaviour is what users would expected most. The error message is about
utf8foldernames and decodefoldernames.
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-02 21:24:12 +02:00
12de158ca2
Merge branch 'uliska/utf8foldernames' into next
2017-10-02 21:11:29 +02:00
f5198794e5
utf8: document new feature, deprecate old one
...
- Document the new utf8foldernames config option
- Deprecate the old decodefoldernames option
Update its documentation, discussing the limitations.
Signed-off-by: Urs Liska <git@ursliska.de >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-02 21:09:43 +02:00
8b398f3aa8
utf8: Safeguard against use of old *and* new option
...
The new 'utf8foldernames' will not work together with the existing
'decodefoldernames' option (which will be documented in the next
commit). Therefore this commit will check for this condition and
abort the synchronization of a misconfigured account before doing
any changes.
Other accounts are not affected.
Signed-off-by: Urs Liska <git@ursliska.de >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-02 21:09:43 +02:00
ef3299b7ce
Remove some unnecessary whitespace (in existing code)
...
Addresses https://github.com/OfflineIMAP/offlineimap/pull/498#discussion_r141672756
Signed-off-by: Urs Liska <git@ursliska.de >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-02 21:09:43 +02:00
36d726763d
utf8: implement utf8foldernames option
...
If utf8foldernames is enabled on account level all folder names read
from the IMAP server will immediately be reencoded to UTF-8. Names
will be treated as UTF-8 as long as the IMAP server isn't contacted again,
for which they are reencoded to IMAP4-UTF-7.
This means that any further processing such as nametrans, folderfilter
etc. will act upon the UTF-8 names, which will have to be documented
carefully.
NOTE 1:
GMail repositories and folders inherit from the IMAP... classes, so I don't
know yet if these changes have ugly side-effects. But web research suggests
that GMail IMAP folders are equally encoded in UTF-7 so that should work
identically here and incorporate the same improvements.
NOTE 2:
I could not test the behaviour with idlefolders as I didn't get this option
to work at all, not even with the latest stable version.
NOTE 3:
I *did* test to sync an IMAP repository against another IMAP repository.
Signed-off-by: Urs Liska <git@ursliska.de >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-02 21:09:43 +02:00
14d83dbf48
utf8: avoid dequoting IMAP folder names twice
...
Signed-off-by: Urs Liska <git@ursliska.de >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-02 21:09:43 +02:00
dca5f1846d
utf8 (aside): Move code for decodefoldernames
...
While intending *not* to change the behaviour of the existing
decodefoldernames option this commit transparently improves
the coding.
So far this worked by overriding the folder's getvisiblename() method
which reads self.visiblename from and applies the conversion on
*every* invocation of getvisiblename().
This commit does the calculation once in the IMAPFolder's __init__.
Signed-off-by: Urs Liska <git@ursliska.de >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-02 21:09:43 +02:00
24b3f27e5f
utf8: Add utf-7/8 conversion functions
...
This commit adds two functions
- imaputil.IMAP_utf8()
- imaputil.utf8_IMAP()
as an interface to the new imap4_utf_7 codec.
Signed-off-by: Urs Liska <git@ursliska.de >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-02 21:09:43 +02:00
032376efad
utf8: Add imap4_utf_7 codec
...
Add code to reencode IMAP folder names to regular utf-8.
This starts an implementation that will add a new config option
`utf8foldernames` on account level which will fix #299 and on the
long run replace the current `decodefoldernames` option.
This commit introduces code to register an `imap4_utf_7` codec
on which two-way conversion methods will later be built.
Original code by
(https://www.blogger.com/profile/16648963337079496096 ),
taken from
http://piao-tech.blogspot.no/2010/03/get-offlineimap-working-with-non-ascii.html
In the comment
http://piao-tech.blogspot.com/2010/03/get-offlineimap-working-with-non-ascii.html?showComment=1316041409339#c669880170006851138
indicates that this code is expected to be incorporated into offlineIMAP and therefore the author implicitly agrees to put it under this license.
Signed-off-by: Urs Liska <git@ursliska.de >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-02 21:09:43 +02:00
31eee55672
accounts: error out when no folder to sync
...
Such error can be hit when the folderfilter is wrong and excludes all the
folders.
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-10-02 02:43:47 +02:00
1ce596d713
remotehost should not be required if transporttunnel is used
...
If the config option `transporttunnel` is used the option `remotehost` is not
needed, because the tunnel provide the IMAP connection.
Signed-off-by: Thomas Merkel <tm@core.io >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-09-21 18:50:57 +02:00
4b18ffd5e3
man: remove mention of experimental support for python 3
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-09-03 11:15:44 +02:00
172b4279ca
man: mention the supported directions of the syncs
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-09-03 11:15:23 +02:00
19442d0010
folder: Gmail: fix copyright header
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-08-15 01:24:23 +02:00
a5d9edc560
folder: Gmail: remove dead code
...
The support for the realdelete configuration option was removed because this
could lead to data loss.
See 51728ed
to know more.
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-08-15 01:19:56 +02:00
6079755b20
sqlite: provide better message error for insert
...
Github-ref: https://github.com/OfflineIMAP/offlineimap/issues/488
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-07-25 11:28:56 +02:00
df7dd3e3b7
contrib/helpers: sort testers by name
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-07-12 23:18:08 +02:00
ec0460a668
MAINTAINERS: Rainer is not currently active
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-07-12 19:56:12 +02:00
e4bee74dad
v7.1.2
...
Tested-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
Tested-by: benutzer193 <registerbn@gmail.com >
Tested-by: Remi Locherer <remi.locherer@relo.ch >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-07-10 16:58:50 +02:00
ceb69c7033
contrib/release.py: consider positive feedbacks from testers
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-07-10 16:57:43 +02:00
7d1a540598
introduce the github CODEOWNERS file
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-07-09 17:40:19 +02:00
0903d5f33c
increase imaplib2 requirement from v2.55 to v2.57
...
Suggested-by: Chris Coleman <christocoleman@yahoo.com >
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-07-09 17:28:12 +02:00
4b103d6d3c
contrib/tested-by.py: remove dead code
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-07-05 17:09:06 +02:00
212ed87509
imapserver: fix syntax error
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-06-30 16:42:47 +02:00
fe2e3249ac
offlineimap.conf: minor improvements
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-06-30 06:33:42 +02:00
481f44c784
offlineimap.conf: ssl must be disabled to force STARTTLS in some cases
...
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net >
2017-06-30 05:19:43 +02:00