docker-offlineimap/offlineimap
Sebastian Spaeth b20f5192fb Allow to specify remote hostname even for the Gmail case
Previously we hard-coded the imap server name in the case of Gmail
repositories, but often we need a different host name. So, allow people
to specify the hostname via the regular "remotehosteval" and
"remotehost" settings, and only falling back to imap.gmail.com when
nothing has been specified.

Cache the hostname, so we don't evaluate the whole thing each time we
query the host name.

Make the remotehosteval processing more robust, by catching any
Exceptions that occur, and throw a OfflineImapError, that explains where
exactly the error had occured. You can test this, e.g. by setting
remotehosteval to 1/"n" or some other invalid expression.

The whole IMAP.gethost() function has been documented code wise while
going through.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-06-08 17:19:07 +02:00
..
folder refactoring: simplify the semaphorewait logic 2011-05-12 18:30:39 +02:00
repository Allow to specify remote hostname even for the Gmail case 2011-06-08 17:19:07 +02:00
ui threadutil: explicitly import get_ident from thread 2011-05-12 18:28:49 +02:00
__init__.py v6.3.4-rc1 2011-05-16 18:54:22 +02:00
accounts.py cleanup: remove uneeded imports 2011-05-09 22:42:15 +02:00
CustomConfig.py Improve CustomConfig documentation 2011-01-20 19:46:01 +01:00
error.py Add OfflineImapError class 2011-05-05 20:00:07 +02:00
imaplib2.py imaplib2: Bump from 2.20 to 2.22 2011-04-11 19:10:45 +02:00
imaplibutil.py improve message "error 111" if connection failed 2011-05-25 20:32:41 +02:00
imapserver.py Throw errors on connection refused and on non-standard SSL ports 2011-06-06 21:33:16 +02:00
imaputil.py cleanup import statements and conform to PEP-8 2011-03-14 21:35:33 +01:00
init.py fix: allow debugtype 'thread' from command line 2011-05-16 18:18:21 +02:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py explicitly define symbols to import instead of 'import *' 2011-05-09 22:43:03 +02:00
syncmaster.py Remove weird SigListener class 2011-05-08 14:25:16 +02:00
threadutil.py fix broken ui Blinkenlights in multi-threaded mode 2011-05-18 18:38:05 +02:00