Merge branch 'krafczyk-new-mail-hook-2' into next

This commit is contained in:
Nicolas Sebrecht
2015-09-11 21:04:52 +02:00
4 changed files with 35 additions and 0 deletions

View File

@ -36,6 +36,11 @@ class IMAPRepository(BaseRepository):
self._host = None
self.imapserver = imapserver.IMAPServer(self)
self.folders = None
# Only set the newmail_hook in an IMAP repository.
if self.config.has_option(self.getsection(), 'newmail_hook'):
self.newmail_hook = self.localeval.eval(
self.getconf('newmail_hook'))
if self.getconf('sep', None):
self.ui.info("The 'sep' setting is being ignored for IMAP "
"repository '%s' (it's autodetected)"% self)