aboutsummaryrefslogtreecommitdiffstats
path: root/archivemail.py
diff options
context:
space:
mode:
authorNikolaus Schulz <microschulz@web.de>2007-11-02 12:00:12 +0000
committerNikolaus Schulz <microschulz@web.de>2007-11-02 12:00:12 +0000
commit82e3be1987918143bca07effeb4a4d6b2632d3dc (patch)
tree62270f31a1b0b3cc17e52d246b498920f82a6d5d /archivemail.py
parent6ea7c7d81049a5e3fb5511b044db4c693d48bee0 (diff)
downloadarchivemail-82e3be1987918143bca07effeb4a4d6b2632d3dc.tar.gz
archivemail-82e3be1987918143bca07effeb4a4d6b2632d3dc.tar.bz2
archivemail-82e3be1987918143bca07effeb4a4d6b2632d3dc.zip
IMAP: fixed message flags retrieval, which failed to extract the right string
from the server response. Tough.
Diffstat (limited to 'archivemail.py')
-rwxr-xr-xarchivemail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archivemail.py b/archivemail.py
index 943bb31..f3fcc0e 100755
--- a/archivemail.py
+++ b/archivemail.py
@@ -1383,7 +1383,7 @@ def _archive_imap(mailbox_name, final_archive_name):
msg_str = response[0][1]
else:
msg_str = response[0][1].replace("\r\n", os.linesep)
- msg_flags = imaplib.ParseFlags(response[1])
+ msg_flags = imaplib.ParseFlags(response[0][0])
msg = rfc822.Message(cStringIO.StringIO(msg_str))
add_status_headers_imap(msg, msg_flags)
vprint("processing message '%s'" % msg.get('Message-ID'))