From: Olivier Matz Date: Wed, 30 Nov 2016 10:54:21 +0000 (+0100) Subject: sq X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=698d6dcc4917d9e5efbf1238419390891287bab8;p=imapami.git sq --- 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)