Mark Overmeer via RT wrote:
Show quoted text> <URL:
http://rt.cpan.org/Ticket/Display.html?id=37849 >
>
> * James Kosin via RT (bug-MailTools@rt.cpan.org) [080722 20:41]:
>> How would one go about setting and/or clearing the tainting of the $exe
>> variable?
>
> The reason why I cannot solve this problem for you the right way, is
> that you have to inspect the source of the $exe variable. And that
> source is not in my module.
>
>> Is there a way to permit this in this specific case (cleaning up the
>> reason for the tainting) ?
>
> Tainting is a protection for you, that (other) bugs in your program
> can be ablused. You can, of course, disable all protection by removing
> the -T flag in the first line of the start-up script. You can also
> replace $exe by the absolute path to the sendmail binary.
I managed to get the output working.
Below is the output of $self, $exe and @$args. The ',' and text before
the '=' was added by me to tell where the fields started.
This is what I added to sendmail.pm to output the values.
print 'Mailer=', $self, ', ';
print 'Exe=', $exe, ', ';
print @$args;
Would you need any more information???
----
Bugzilla Sanity CheckOK, now attempting to send unsent mail
11 bugs found with possibly unsent mail.
Mailer=Mail::Mailer::sendmail=GLOB(0x8c53624), Exe=/usr/lib/sendmail,
-i-fbugzilla-daemon
Software error:
Insecure dependency in exec while running with -T switch at
/usr/lib/perl5/vendor_perl/5.10.0/Mail/Mailer/sendmail.pm line 25.
For help, please send mail to the webmaster
(root@support.intcomgrp.com), giving this error message and the time and
date of the error.
Software error:
DBD::Pg::db selectrow_array failed: server closed the connection
unexpectedly
This probably means the server terminated abnormally
before or while processing the request. [for Statement "SELECT userid,
login_name,
realname,
disabledtext,
mybugslink
FROM profiles
WHERE userid=?"] at
Bugzilla/User.pm line 132
Bugzilla::User::_create('Bugzilla::User', 'userid=?', 4) called at
Bugzilla/User.pm line 82
Bugzilla::User::new('Bugzilla::User', 4) called at Bugzilla/BugMail.pm
line 416
Bugzilla::BugMail::ProcessOneBug(188, undef) called at
Bugzilla/BugMail.pm line 115
Bugzilla::BugMail::Send(188) called at
/var/www/html/bugzilla-2.22.2/sanitycheck.cgi line 245
For help, please send mail to the webmaster
(root@support.intcomgrp.com), giving this error message and the time and
date of the error.