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
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! (Score:1)
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 (Score:1)