diff --git a/Mailnag/daemon/mails.py b/Mailnag/daemon/mails.py index 4ed6e87..5bead3d 100644 --- a/Mailnag/daemon/mails.py +++ b/Mailnag/daemon/mails.py @@ -120,7 +120,7 @@ class MailCollector: except: print "Could not get date from IMAP message." # debug # current time to seconds - datetime = time.time() + datetime = int(time.time()) try: try: # get subject and format it @@ -191,7 +191,7 @@ class MailCollector: except: print "Could not get date from POP message." # debug # current time to seconds - datetime = time.time() + datetime = int(time.time()) try: try: # get subject and format it @@ -254,7 +254,7 @@ class MailCollector: except: print 'Error: cannot format date.' # current time to seconds - datetime = time.time() + datetime = int(time.time()) return datetime if field == 'subject':