Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 6255
Status: resolved
Worked: 5 min
Priority: 0/
Queue: Mail-Sender

People
Owner: JENDA [...] cpan.org
Requestors: christian_kayssner [...] muthpartners.de
Cc:
AdminCc:

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



Subject: File based debug feature buggy? String output possible?
Hello, in our automatic system should create a async mail if an error will popup. While debugging the system, i get mails where the from header are different from the values which are set set from my script. I remember that debug feature exists. After activating nothing more are working. I tested it on different platforms and perl versions. The error are always the same (like show below). At this point, it is possible, to 'print' the debug output to an string variable and not in a file? In our final environment is it completely excluded to create files. Kind Regards Parameter are: , ... , debug => "mail.log" , debug_level => 4 , ... Message are: Can't call method "opened" without a package or object reference at (eval 15)[/usr/lib/perl5/site_perl/5.8.2/Mail/Sender.pm:312] line 46, <GEN0> line 1. Mail::Sender::DBIO::opened('Mail::Sender::DBIO=GLOB(0xa7e2534)') called at /usr/lib/perl5/site_perl/5.8.2/Mail/Sender.pm lin e 160 Mail::Sender::send_cmd('Mail::Sender::DBIO=GLOB(0xa7e2534)','ehlo XP056') called at /usr/lib/perl5/site_perl/5.8.2/Mail/Sender.pm line 180 Mail::Sender::say_helo('Mail::Sender=HASH(0xa728c68)', 'Mail::Sender::DBIO=GLOB(0xa7e2534)') called at /usr/lib/perl5/site_perl/5.8.2/Mail/Sender.pm line 922 Mail::Sender::Connect('Mail::Sender=HASH(0xa728c68)') called at /usr/lib/perl5/site_perl/5.8.2/Mail/Sender.pm line 1087 Mail::Sender::Open('Mail::Sender=HASH(0xa728c68)', 'HASH(0xa682600)') called at /usr/lib/perl5/site_perl/5.8.2/Mail/Sender.pm line 1488 Mail::Sender::MailMsg('Mail::Sender=HASH(0xa728c68)', 'HASH(0xa682600)') called at ...
[guest - Fri May 7 09:33:32 2004]: Show quoted text
> script. I remember that debug feature exists. After activating > nothing more are working. I tested it on different platforms and > perl versions. The error are always the same (like show below). > > At this point, it is possible, to 'print' the debug output to an > string variable and not in a file? In our final environment is it > completely excluded to create files.
The debug parameter may be a handle, not just a filename. So you may use IO::String or (with a recent enough Perl) open $FH, '>', \$string; ... debug => $FH, ... Show quoted text
> Kind Regards > > Parameter are: > , ... > , debug => "mail.log" > , debug_level => 4 > , ... > > Message are: > Can't call method "opened" without a package or object reference at > (eval 15)[/usr/lib/perl5/site_perl/5.8.2/Mail/Sender.pm:312]
line Show quoted text
> 46, <GEN0> line 1.
Seems like Mail::Sender failed to open the file and did not report the error properly. I'll take a look at this. Jenda
The inability to open the debug file is reported correctly by 0.8.13 or maybe even older. I forgot to close the issue before.