Subject: | sendmail '-f' should be called with just the mailbox name |
Hi,
send_by_sendmail() currently calls the sendmail program with '-f$from_addr', where $from_addr can contain the full address (as in "Name <address@somewhere>") rather than just the mailbox name (as in 'address@somewhere'). The real sendmail is fine with this and digs out only the mailbox name, but some variants (apparently at least qmail) aren't.
Since the '-f' argument is used in the reverse-path header/"envelope from"-field, and that can only contain a mailbox name, it would make sense to call sendmail with only the mailbox name.
This bug was originally reported as Debian bug #173627, http://bugs.debian.org/173627 , but was apparently never forwarded to CPAN. The Debian version of MIME::Lite has had this fixed for almost two years now.
I'm attaching a trivial patch against 3.01_05. (Note that 3.01_05 has two typos a bit earlier in the same code path: UNIVERAL::isa should naturally be UNIVERSAL::isa)
Cheers,
--
Niko Tyni
ntyni@iki.fi
Message body not shown because it is not plain text.