Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Email-Sender CPAN distribution.

Report information
The Basics
Id: 60911
Status: resolved
Priority: 0/
Queue: Email-Sender

People
Owner: Nobody in particular
Requestors: fluffymike [...] googlemail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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});
On Tue Aug 31 08:41:22 2010, fluffymike@googlemail.com wrote: Show quoted text
> 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});
This problem exists with SMTP transports, also. Can it be solved at a more general layer than at the transport? Thanks.
Passing -t would be solved when https://github.com/rjbs/Email-Sender/issues/16 is solved. The Bcc issue is discussed in greater detail at https://github.com/rjbs/Email-Sender/wiki/Bcc -- rjbs