mirror of
https://github.com/pulb/mailnag.git
synced 2026-05-07 05:06:54 +02:00
use identical types in extracted and fallback mail times (int)
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user