[Remail] [patch v2 07/11] remail: Simplify send_mail()

Thomas Gleixner tglx at linutronix.de
Tue Jun 20 23:28:32 CEST 2023


On Tue, Jun 20 2023 at 14:06, Konstantin Ryabitsev wrote:

> 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.

Duh yes.


More information about the Remail mailing list