I am evidently missing something with respect to using Test::Reporter for the purpose of sending test reports to cpan-testers@perl-org.

As reported in a thread I began yesterday (Getting Modules Hot Off the Keyboard), I decided to hack up a script which enables me to download a new version of a module as soon as it appears on http://www.cpan.org, test it and send a test report off to perl.cpan.testers. Since this is something I (as yet) only want to do occasionally, I don't need the full-fledged automated testing apparatus; I just need a hack that gets the job done.

The program I wrote can be found at Re^2: Getting Modules Hot Off the Keyboard. For the purpose of this posting, let's focus just on this part:

my $reporter = Test::Reporter->new( grade => $grade, distribution => $localdir, from => 'Jim Keenan (testing@yahoo.com)', comments => $comment, ); if ($opts{s}) { print "Sending mail ...\n"; $reporter->send() || croak $reporter->errstr(); } else { print $reporter->subject(), "\n"; print $reporter->from(), "\n"; print "\nREPORT:\n\n"; print $reporter->report, "\n"; print $reporter->grade(), "\n"; print "No mail sent\n"; }

The use of getopts() enables me to do a dry run of the test and see what the report will look like.

When I first tried sending test reports this morning, I was getting an error message that read something like this (working from memory):

Test::Reporter could not send the message.

After studying the Test::Reporter docs, I had a hunch that installing Mail::Send would lead to better results. It did. I no longer got the error message, and my script made it through to the Finished line.

There was just one problem: My mail was not arriving at its destination. Several hours later, the four test reports I sent out had failed to appear on any of the interfaces (mail, news or web) to cpan-testers.

Now, since this is the first time I have ever written a program which sends mail, I'm really in the dark. I looked at the docs for Test::Reporter, Mail::Send and Mail::Mailer. I looked at QandASection: mail and news. I did SuperSearches and googled for Test::Reporter. Nothing self-evidently helpful turned up.

I also took a look at /var/log/mail.log. But since I know so little about mail, I'm going to include the tail here in the hope that someone can give me a clue.

Oct 9 14:18:50 localhost postfix/qmgr[4121]: A9D2D1BE8D1: from=<jimk@ +Macintosh.local>, size=5678, nrcpt=1 (queue active) Oct 9 14:18:50 localhost postfix/qmgr[4121]: C5ADB1BE8C7: from=<jimk@ +Macintosh.local>, size=2377, nrcpt=1 (queue active) Oct 9 14:18:53 localhost postfix/smtp[4392]: 86A811BE845: to=<cpan-te +sters@perl.org>, relay=mx.develooper.com[63.251.223.176], delay=18391 +, status=deferred (host mx.develooper.com[63.251.223.176] said: 450 C +ould not resolve Macintosh.local (in reply to MAIL FROM command)) Oct 9 14:18:53 localhost postfix/smtp[4391]: 6A3691BE8DD: to=<cpan-te +sters@perl.org>, relay=mx.develooper.com[63.251.223.176], delay=6317, + status=deferred (host mx.develooper.com[63.251.223.176] said: 450 Co +uld not resolve Macintosh.local (in reply to MAIL FROM command)) Oct 9 14:18:53 localhost postfix/smtp[4390]: 2B6511BE839: to=<cpan-te +sters@perl.org>, relay=mx.develooper.com[63.251.223.176], delay=18512 +, status=deferred (host mx.develooper.com[63.251.223.176] said: 450 C +ould not resolve Macintosh.local (in reply to MAIL FROM command)) Oct 9 14:18:53 localhost postfix/smtp[4389]: 27FFE1BE850: to=<cpan-te +sters@perl.org>, relay=mx.develooper.com[63.251.223.176], delay=18090 +, status=deferred (host mx.develooper.com[63.251.223.176] said: 450 C +ould not resolve Macintosh.local (in reply to MAIL FROM command)) Oct 9 14:18:53 localhost postfix/smtp[4393]: A9D2D1BE8D1: to=<cpan-te +sters@perl.org>, relay=mx.develooper.com[63.251.223.176], delay=6813, + status=deferred (host mx.develooper.com[63.251.223.176] said: 450 Co +uld not resolve Macintosh.local (in reply to MAIL FROM command)) Oct 9 14:18:56 localhost postfix/smtp[4392]: C5ADB1BE8C7: to=<cpan-te +sters@perl.org>, relay=mx.develooper.com[63.251.223.176], delay=6851, + status=deferred (host mx.develooper.com[63.251.223.176] said: 450 Co +uld not resolve Macintosh.local (in reply to MAIL FROM command))

Can anyone give me a diagnostic hint (and point me in the direction of mail for dummies)? Thanks in advance.

Jim Keenan

UPDATE: Also googled archives of comp.lang.perl.misc and c.l.p.modules for Test::Reporter. Nada.


In reply to Mail Sent with Test::Reporter Not Getting Delivered by jkeenan1

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.