Format dates in From lines more like most mail programs do

This commit is contained in:
Mark Feit 2018-12-25 18:10:51 -05:00
parent 0b1351717c
commit d820b7a832

View file

@ -159,7 +159,7 @@ def download_messages(server, filename, messages, config):
for msg_id in messages.keys():
# This "From" and the terminating newline below delimit messages
# in mbox files
buf = "From nobody %s\n" % time.strftime('%a %m %d %H:%M:%S %Y')
buf = "From nobody %s\n" % time.strftime('%a %b %d %H:%M:%S %Y')
# If this is one of our synthesised Message-IDs, insert it before
# the other headers
if UUID in msg_id: