Browse Source

Fall back to date instead, when no message ID is available

master
Sven Slootweg 9 years ago
parent
commit
66aa44c068
  1. 4
      parse
  2. 4
      rename

4
parse

@ -104,8 +104,8 @@ for email_file in file_list:
if message['message-id'] is None:
if options['ignore_invalid'] == True:
message_id = ""
print "WARNING: %s does not contain a valid message-id header. Empty message-id assumed." % email_file
message_id = message['date']
print "WARNING: %s does not contain a valid message-id header. Falling back to date." % email_file
else:
print "%s is not a valid e-mail file." % email_file
finished += 1

4
rename

@ -66,8 +66,8 @@ for email_file in file_list:
if message['message-id'] is None:
if options['ignore_invalid'] == True:
message_id = ""
print "WARNING: %s does not contain a valid message-id header. Empty message-id assumed." % email_file
message_id = message['date']
print "WARNING: %s does not contain a valid message-id header. Falling back to date." % email_file
else:
print "%s is not a valid e-mail file." % email_file
finished += 1

Loading…
Cancel
Save