From 82e3be1987918143bca07effeb4a4d6b2632d3dc Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Fri, 2 Nov 2007 12:00:12 +0000 Subject: IMAP: fixed message flags retrieval, which failed to extract the right string from the server response. Tough. --- archivemail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) -- cgit v1.2.3