[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[msmtp-users] Bug introduced in version 1.4.29



Hello,

Consider the following email example:

$ cat >test <<EOF
From: from@...45...
To: to@...45...

EOF

The only thing to notice is that "From:" appears before "To:".

$ msmtp --read-recipients --read-envelope-from < test
msmtp: no recipients found

The thing is that the "bug fix" introduced in 1.4.29 also introduce this
bug.

Namely line 1477 in msmtp.c

"if (from_hdr >= 0)" replaces "if (from_hdr == 0)" which then skips the
reading of the forthcoming recipients.

Assuming  my  conclusions are  correct,  I  consider this  bug  critical
since this  makes the  flags --read-recipients  and --read-envelope-from
incompatible.

Best regards,

-- 
Nicolas Pouillard
http://nicolaspouillard.fr

Attachment: pgpyLe5kfslbz.pgp
Description: PGP signature