From d820b7a83216c756034f4f74701cf9e666581140 Mon Sep 17 00:00:00 2001 From: Mark Feit Date: Tue, 25 Dec 2018 18:10:51 -0500 Subject: [PATCH] Format dates in From lines more like most mail programs do --- imapbackup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imapbackup.py b/imapbackup.py index 324afca..dc1ca9a 100644 --- a/imapbackup.py +++ b/imapbackup.py @@ -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: