Changeset View
Changeset View
Standalone View
Standalone View
pykolab/imap/__init__.py
Context not available. | |||||
if hostname not in self._imap: | if hostname not in self._imap: | ||||
if backend == 'cyrus-imap': | if backend == 'cyrus-imap': | ||||
import cyrus | from . import cyrus | ||||
self._imap[hostname] = cyrus.Cyrus(uri) | self._imap[hostname] = cyrus.Cyrus(uri) | ||||
# Actually connect | # Actually connect | ||||
if login: | if login: | ||||
Context not available. | |||||
self._imap[hostname].logged_in = True | self._imap[hostname].logged_in = True | ||||
elif backend == 'dovecot': | elif backend == 'dovecot': | ||||
import dovecot | from . import dovecot | ||||
self._imap[hostname] = dovecot.Dovecot(uri) | self._imap[hostname] = dovecot.Dovecot(uri) | ||||
# Actually connect | # Actually connect | ||||
if login: | if login: | ||||
Context not available. |