]> git.droids-corp.org - imapami.git/commitdiff
debug
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 28 Nov 2016 10:07:00 +0000 (11:07 +0100)
committerOlivier Matz <olivier.matz@6wind.com>
Mon, 28 Nov 2016 10:07:00 +0000 (11:07 +0100)
imapami/actions.py

index ae3c9ef941c6e69e62adde3834c74b0d163ca2b1..94a1a3b670fe7dc9244cf9a53d181d079a64576c 100644 (file)
@@ -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":