Fix crash introduced in the last refactoring
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 27 Jun 2012 12:40:24 +0000 (14:40 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 27 Jun 2012 12:40:24 +0000 (14:40 +0200)
fix_imap_internaldate.py

index 8c827e1..5ac1d5c 100644 (file)
@@ -103,7 +103,7 @@ def main():
                                         mid.decode('iso-8859-1'), box.name, box.owner,
                                         internal_date.strftime("%d %b %Y %H:%M:%S"),
                                         received_date.strftime("%d %b %Y %H:%M:%S"),
-                                        fetched_received_date[0][1].decode('iso-8859-1').split("Received:")[1])
+                                        fetched_received_date.split("Received:")[1])
                     # count total emails for every user and mailbox
                     box.date_conflicts += 1
             # if all messages were successfully fixed confirm caching