From 9d95d7bc62bc56af0f1d5c39a5489d26fdbb85f6 Mon Sep 17 00:00:00 2001 From: Haojun Bao Date: Mon, 27 Jun 2011 09:13:35 +0800 Subject: [PATCH] folder/IMAP: fix typo with maxsize and maxage. Signed-off-by: Bao Haojun Signed-off-by: Nicolas Sebrecht --- offlineimap/folder/IMAP.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/folder/IMAP.py b/offlineimap/folder/IMAP.py index 62f220f..9297a7b 100644 --- a/offlineimap/folder/IMAP.py +++ b/offlineimap/folder/IMAP.py @@ -137,7 +137,7 @@ class IMAPFolder(BaseFolder): search_condition += date_search_str if(maxsize != -1): - if(maxage != 1): #There are two conditions - add a space + if(maxage != -1): #There are two conditions - add a space search_condition += " " search_condition += "SMALLER " + self.config.getdefault("Account " + self.accountname, "maxsize", -1)