From 6804ffd89092225e9549d51bea82801f2a503df4 Mon Sep 17 00:00:00 2001 From: David Rousselie Date: Fri, 7 Mar 2008 16:03:47 +0100 Subject: [PATCH] Switch back to read-write mode while checking for new mail on IMAP accounts If in read only mode, all emails will stay with 'RECENT' flag between checks. darcs-hash:20080307150347-86b55-db2339c066d4ed47b406eaa6df146c24cc7f6514.gz --- src/jmc/model/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jmc/model/account.py b/src/jmc/model/account.py index bdbded5..194d6fe 100644 --- a/src/jmc/model/account.py +++ b/src/jmc/model/account.py @@ -436,7 +436,7 @@ class IMAPAccount(MailAccount): Get a list of new emails indexes """ self.__logger.debug("Getting mail list") - typ, data = self.connection.select(self._get_real_mailbox(), True) + typ, data = self.connection.select(self._get_real_mailbox()) typ, data = self.connection.search(None, 'RECENT') if typ == 'OK': return data[0].split(' ')