From 698d6dcc4917d9e5efbf1238419390891287bab8 Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Wed, 30 Nov 2016 11:54:21 +0100 Subject: [PATCH] sq --- imapami/conditions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imapami/conditions.py b/imapami/conditions.py index f674bd5..3836b75 100644 --- a/imapami/conditions.py +++ b/imapami/conditions.py @@ -338,7 +338,7 @@ class ImapamiCondSentBefore(ImapamiCond): t -= int(reldate) * 3600 * 24 # XXX t = time.gmtime(t) month = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", - "Sep", "Oct", "Nov", "Dec"][t.tm_mon] + "Sep", "Oct", "Nov", "Dec"][t.tm_mon - 1] date = "%d-%s-%d" %(t.tm_mday, month, t.tm_year) ImapamiCond.__init__(self, criteria=set(['SENTBEFORE "%s"' % date])) register(ImapamiCondSentBefore) -- 2.39.5