Reshuffled the log level for the default messages
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 27 Jun 2012 12:25:28 +0000 (14:25 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 27 Jun 2012 12:27:15 +0000 (14:27 +0200)
fix_imap_internaldate.py

index 8056a91..8c827e1 100644 (file)
@@ -72,7 +72,7 @@ def main():
                 box = caching_data.retrieve_cached_mailbox(mailbox[0], mailbox[1], user['username'])
                 mail_ids = session.fetch_messages()
                 new_ids = box.synchronize(mail_ids)
-                logging.warning("%s new messages out of %s found in %s.", len(new_ids), len(mail_ids), box.name)
+                logging.info("%s new messages out of %s found in %s.", len(new_ids), len(mail_ids), box.name)
             except UserWarning as ex:
                 logging.error(ex)
                 continue
@@ -99,7 +99,7 @@ def main():
                             logging.error(ex)
                             continue
                     else:
-                        logging.info("Date conflict found in message uid: %s - mailbox: %s - user: %s.\nInternal date %s is different from received date %s from RECEIVED header:\n%s.",
+                        logging.warning("Date conflict found in message uid: %s - mailbox: %s - user: %s.\nInternal date %s is different from received date %s from RECEIVED header:\n%s.",
                                         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"),