Subject: | BCC not working / Passing -t argument to sendmail |
Date: | Tue, 31 Aug 2010 13:41:09 +0100 |
To: | bug-Email-Sender [...] rt.cpan.org |
From: | Mike Tonks <fluffymike [...] googlemail.com> |
Release: Email-Sender-0.102370
Transport: Sendmail (default)
Perl: v5.10.0 built for x86_64-linux-gnu-thread-multi
OS: Ubuntu 10.4
Exim version: 4.69-11ubuntu4
I recently noticed the bcc copies never arrived, and the bcc header
was visible to the other recipients. I'm using the sendmail transport
with exim mta. Googling the issues seems to suggest I should pass the
'-t' argument to sendmail, though there's no way to do this currently
Email::Sender.
In addition I removed the 'to' addresses from the command line as exim
seems to remove them from those found in the headers, although it may
be possible to change this behaviour with
'extract_addresses_remove_arguments = false' so that's probably an
exim issue, however I'd rather change the perl script than the server
config.
I fixed this locally by changing:
Email::Sender::Transport::Sendmail at line 59:
my ($first, @args) = $^O eq 'MSWin32'
? qq(| "$prog" -t -f $envelope->{from})
: (q{|-}, $prog, '-t', '-f', $envelope->{from});