From 81f3771e40db8e4f20e328939bc73cc69e46e7c5 Mon Sep 17 00:00:00 2001 From: Patrick Ulbrich Date: Mon, 5 Aug 2013 19:43:54 +0200 Subject: [PATCH] use identical types in extracted and fallback mail times (int) --- Mailnag/daemon/mails.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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':