Subject: | Possible solution for Smtpsend.t failure |
Date: | Tue, 16 Apr 2013 14:34:30 +0100 |
To: | bug-MIME-tools [...] rt.cpan.org |
From: | Kenneth McLaren <kemicl [...] virginmedia.com> |
Hello,
As part of the installation of Email::Simple etc. I got a test failure for MIME::Tools-5.504, namely Smtpsend.t failed.
I see the failure reported under CPAN testers for OSX at http://www.cpantesters.org/cpan/report/c53ab476-83d6-11e2-ac0a-fd2b250c86a9
I separated out the server and client code to get rid of any timing issues and found that the client or sending side was getting delayed for about 30 seconds trying to identify the sender using the mailaddress() function from Mail::Util.
So the workaround that I have found is the following, At the start of Smtpsend.t, i.e. just after the use statements add the following line,
$ENV{MAILDOMAIN} = 'example.com';
The test still takes 13 odd seconds to run but it completes successfully.
Regards,
Ken.