Hi,
I’d like to resend some saved emails, i. e. files, which also contain header lines, etc.
My best approach so far is:
blat mailBody.txt -q -noh2 -server smtp -nomps -f postmaster@fee.de -bcc reinhard.nissl@fee.de -ss –raw
Having a look at the server communication with wireshark, blat always adds these additional headers:
Date: Mon, 17 Aug 2020 16:15:48 +0200
From: postmaster@fee.de
Message-ID: <01d674a0$Blat.v3.2.17$e7df4362$4bd83b20145e@smtp>
In case mailBody.txt already contains headers like Date, From and Message-ID (which is true in my case), some mail servers refuse the message e. g. due to multiple Date headers.
It would be nice, if blat could be instructed to not add any headers, e. g. by a new option –rawonly.
On the other hand, it would be even nicer to have finer control about which headers are added in raw mode.
Like –ss suppresses the Subject header, maybe –fs, -ds and –ms could control suppressing From, Date and Message-ID headers.
Thanks in advance.
Bye.
CMail has these features.
I can look into this. I see this can lead to problems for some use cases, where the raw text to be sent does not actually have the header lines that Blat is being told to not add. Might it be better if Blat tried to identify those header lines to be suppressed within the raw message body, and remove them if found, thus allowing Blat to build its header lines normally?
Chip