Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ferreira (5993)

  (email not shown publicly)

Just another Brazilian Perl hacker.

Journal of ferreira (5993)

Friday January 25, 2008
01:41 PM

SMTP/SASL authentication for CPAN::Reporter

[ #35488 ]

I wrote a monkeypatch (dirty, I have to confess) so that I could use CPAN::Reporter with my ISP mail server which requires authentication.

I had to do it by touching Test::Reporter as well. They will be available in CPAN at:

In Test::Reporter, a new accessor net_smtp_args was created which should be filled with a hash ref. If it contains something like:

{   auth => { user => 'me', pass => '***' } }

and Net::SMTP is the current transport, it will attempt to do SASL authentication after opening the connection.

In CPAN::Reporter, the changes allow the code to read from the config file ~/.cpanreporter/config.ini two config values which get passed into Test::Reporter:

# to do SMTP/SASL authentication, add these to ~/.cpanreporter/config.ini

This is not a permanent solution because CPANT::Testers::Transport::* is in the works to replace Test::Reporter which will allow more natural/elegant approaches to that.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Good temporary workaround.

    I'm about halfway through cleaning up a Test::Reporter patch to add TLS as a transport option, but I've been distracted by work on CPAN::Reporter and CPAN::Reporter::Smoker. (Plus I decided to learn git to deal with the T::R repository directly.)

    I'll look at the monkey patch -- it may be helpful to me still.

    -- dagolden
  • Now if only those responsible would just hurry up and get HTTP transports working, none of that would have been necesary.