docker-offlineimap/offlineimap
Eygene Ryabinkin 7d313f49dc Refactored authentication handling
- created helper routine that will do authentication;

 - routine tries each method in turn, first successful
   one terminates it: makes things easier to read
   and handle;

 - renamed plainauth() inside offlineimap/imapserver.py
   to loginauth(): the function does IMAP LOGIN authentication
   and there is PLAIN SASL method, so previous name was
   a bit misleading;

 - slightly improved error reporting: all exceptions during
   authentication will be reported at the end of the run;

 - now loginauth() is never called if LOGINDISABLED is advertized
   by the server; it used to be invoked unconditionally when
   CRAM-MD5 fails, but we should respect server's opinion on
   how to handle its users.

Signed-off-by: Eygene Ryabinkin <rea@codelabs.ru>
2013-08-06 01:10:10 +04:00
..
folder make savemessage() handle NO response to APPEND correctly 2013-08-02 16:41:54 +04:00
repository Prune trailing whitespaces from code and documentation 2013-07-21 23:00:23 +04:00
ui Prune trailing whitespaces from code and documentation 2013-07-21 23:00:23 +04:00
utils Create global instance of command-line options 2013-02-11 23:34:18 +04:00
__init__.py Prune trailing whitespaces from code and documentation 2013-07-21 23:00:23 +04:00
accounts.py Create global instance of command-line options 2013-02-11 23:34:18 +04:00
CustomConfig.py Prune trailing whitespaces from code and documentation 2013-07-21 23:00:23 +04:00
error.py Introduce new error level FOLDER_RETRY 2011-09-06 19:00:21 +02:00
globals.py Create global instance of command-line options 2013-02-11 23:34:18 +04:00
imaplib2.py Prune trailing whitespaces from code and documentation 2013-07-21 23:00:23 +04:00
imaplibutil.py IMAPlib mixin class: pass 'readonly' exception to our callers 2012-08-11 11:59:26 +02:00
imapserver.py Refactored authentication handling 2013-08-06 01:10:10 +04:00
imaputil.py Improve 'find first quotation' regex 2012-08-21 16:58:32 +02:00
init.py Prune trailing whitespaces from code and documentation 2013-07-21 23:00:23 +04:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py Allow custom sorting of mailboxes for mbnames 2013-08-02 14:46:44 +04:00
syncmaster.py Exit "infinite" monitorloop when SyncRunner thread exits 2011-11-02 11:55:05 +01:00
threadutil.py Fix deadlock for IMAP folder synced in singlethreaded mode 2013-02-05 07:53:25 +04:00