SMTP/SASL authentication for CPAN::Reporter

ferreira on 2008-01-25T18:41:07

I wrote a monkeypatch (dirty, I have to confess) so that I could use 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
smtp_auth_user=me
smtp_auth_pass=***

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.


thanks!

dagolden on 2008-01-26T14:39:45

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

See, all this should not be needed

Alias on 2008-01-27T07:01:19

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