Windows atomic rename correction
[imap-fix-internaldate] / src / fix_imap_internaldate.py
index cc46e4d..04f3fd8 100644 (file)
@@ -138,7 +138,7 @@ def synchronize_csv(config, test_mode):
                                     internal_date.strftime("%d %b %Y %H:%M:%S"),
                                     received_date.strftime("%d %b %Y %H:%M:%S"),
                                     fetched_received_date.split("Received:")[1])
-                    if(test_mode==0):
+                    if(not test_mode):
                         try:
                             session.update_message(mid, box.name, received_date)
                         except UserWarning as ex: