Commit eebba81b authored by Arkadiusz Hiler's avatar Arkadiusz Hiler

mbox: Get better at guessing cover letter's timestamp

Use the first patch timestamp if available, otherwise use series
completion date.
Signed-off-by: default avatarArkadiusz Hiler <>
parent 4026bb37
Pipeline #124126 passed with stage
in 1 minute and 26 seconds
......@@ -227,8 +227,12 @@ def revision_cover_letter_to_mbox(revision):
mail['Message-Id'] = "<filler-patchwork-generated-id-%d@patchwork>" % \
mail.set_unixfrom('From patchwork ' +
if revision.ordered_patches():
from_time = revision.ordered_patches()[0].date.ctime()
from_time = revision.completed.ctime()
mail.set_unixfrom('From patchwork ' + from_time)
return mail
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment