From 94454ed3f2ba42595c8706cdb6dd35f853b6a1c4 Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Mon, 28 Nov 2016 11:07:00 +0100 Subject: [PATCH] debug --- imapami/actions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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": -- 2.39.5