A Date: header is systematically added after exiting the text editor when composing a message, even if one has already been defined manually by the user.
This is particularly annoying when alot is used with git format-patch for example.
This results in multiple date headers being present in outgoing messages.
I think that this header should automatically be added only if it's not already present.
Software Versions
Python version: 3.7.4
Notmuch version: [if relevant]
Alot version: 0.8
To Reproduce
Steps to reproduce the behaviour:
compose a new message
add Date: Mon, 07 May 2012 12:09:16 -0700 in the headers in the text editor
exit the text editor, send the message
open the sent message and look at its source: it contains two Date: headers, one with the previously defined value, and another with the current date.
Agreed.
This line should be moved into alot.db.envelope.constuct_mail and conditional under that header being unset.
I am not sure about content-type and other headers, because that should be dependent on there beint attachments etc..
Describe the bug
A
Date:
header is systematically added after exiting the text editor when composing a message, even if one has already been defined manually by the user. This is particularly annoying when alot is used withgit format-patch
for example.This results in multiple date headers being present in outgoing messages.
I think that this header should automatically be added only if it's not already present.
Software Versions
To Reproduce Steps to reproduce the behaviour:
Date: Mon, 07 May 2012 12:09:16 -0700
in the headers in the text editorDate:
headers, one with the previously defined value, and another with the current date.Error Log N.A.