Re: Putmail ignores multiple SMTP recipients

Kevin Koster via Bug reports and feature requests for GNU mailutils <[email protected]> Sat, 11 Oct 2025 15:48:37 +1100
Newsgroups gmane.comp.gnu.mailutils.bugs
Organization OmberTech
Message-ID <[email protected]>
On Fri, 10 Oct 2025 13:48:00 +0200
"Sergey Poznyakoff" <[email protected]> wrote:
> Kevin Koster via Bug reports and feature requests for GNU mailutils
> ha escrit:
> 
> > In both Mailutils 3.17 and 3.20 (Linux OS) Putmail ignores multiple
> > ";to=" addresses separated by commas
> 
> Thanks for reporting.  Please apply the attached fix.

Thank you, now the email is sent to both recipients listed after ";to="
in the previous example. However ";recipient-headers=" ignores addresses
listed after the first non-empty "recipient-header":

With "To: [email protected],[email protected]" and
"Cc: [email protected]", only [email protected] and
[email protected] get sent the email when using
";recipient-headers=To,Cc,Bcc":

$ echo -e 'From: Kevin Koster <[email protected]>\nTo: [email protected],[email protected]\nCc: [email protected]\nSubject: Test\n\nTesting 1,2,3,4' | putmail --debug-level=all -f "[email protected]" "smtp://[email protected]:587;recipient-headers=To,Cc,Bcc" 2>putmail_3.20patch1_recipient-headers_log2.txt
$ grep [email protected] putmail_3.20patch1_recipient-headers_log2.txt
putmail: C: RCPT TO:<[email protected]>
putmail: C: To: [email protected],[email protected]
$ grep [email protected] putmail_3.20patch1_recipient-headers_log2.txt
putmail: C: RCPT TO:<[email protected]>
putmail: C: To: [email protected],[email protected]
$ grep [email protected] putmail_3.20patch1_recipient-headers_log2.txt
putmail: C: Cc: [email protected]

But the "Cc" address works if there's no "To" address in the email:

$ echo -e 'From: Kevin Koster <[email protected]>\nTo: \nCc: [email protected]\nSubject: Test 2\n\nTesting 5,6,7,8' | putmail --debug-level=all -f "[email protected]" "smtp://[email protected]:587;recipient-headers=To,Cc,Bcc" 2>putmail_3.20patch1_recipient-headers_log3.txt
$ grep [email protected] putmail_3.20patch1_recipient-headers_log3.txt
putmail: C: RCPT TO:<[email protected]>
putmail: C: Cc: [email protected]

Regards,
Kevin Koster.