[Remail] [patch v2 07/11] remail: Simplify send_mail()
Konstantin Ryabitsev
konstantin at linuxfoundation.org
Tue Jun 20 20:06:01 CEST 2023
On Sun, Jun 18, 2023 at 10:13:49PM +0200, Thomas Gleixner wrote:
> + # Add the required headers in the proper order
> + msgout['Return-path'] = sender
> + msg_copy_headers(msgout, msg, ['Date'])
> + msgout['From'] = mfrom
> + msgout['To'] = account.addr
> +
> + msg_copy_headers(msgout, msg, ['In-Reply-To', 'References', 'User-Agent',
> + 'MIME-Version', 'Charset', 'Message-ID'])
I think you're missing 'Subject' here, which is why it ended up gone in my
tests. Other than that, I think it was largely working.
-K
More information about the Remail
mailing list