From: Olivier Matz Date: Mon, 28 Nov 2016 10:07:00 +0000 (+0100) Subject: debug X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=94454ed3f2ba42595c8706cdb6dd35f853b6a1c4;p=imapami.git debug --- diff --git a/imapami/actions.py b/imapami/actions.py index ae3c9ef..94a1a3b 100644 --- a/imapami/actions.py +++ b/imapami/actions.py @@ -269,11 +269,13 @@ class ImapamiActionMove(ImapamiAction): """ name = "move" def __init__(self, dest): - ImapamiAction.__init__(self, terminal=True) + ImapamiAction.__init__(self, fetch="headers", terminal=True) self.dest = dest def process(self, ami, mail): imap = ami.imap dest = self.evaluate(self.dest, ami, mail.msg) + msg = self.evaluate("move {Subject} to %s" % dest, ami, mail.msg) + ami.logger.debug(msg) imap.create(dest) ret, msg = imap.uid("COPY", mail.item, dest) if ret != "OK":