Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dax/jmc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Rousselie <dax@happycoders.org>2008-03-07 18:03:47 +0300
committerDavid Rousselie <dax@happycoders.org>2008-03-07 18:03:47 +0300
commit6804ffd89092225e9549d51bea82801f2a503df4 (patch)
treeea196e254c876b452e5fec0bba866d6c158df417 /src
parent089ccbd8088dc52fda34225cc7f1b4742b11f9be (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/jmc/model/account.py2
1 files changed, 1 insertions, 1 deletions
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(' ')