Subject: | setting $\ to "\n"; before calling Mail::POP3Client() causes failures |
. OS: GNU/linux fedora core 5
. perl 5.8.8
$ export POPTESTACCOUNT=x.y:XXX:pop.free.fr
# contact me for x.y and XXX in case the failure is pop server dependent
$ make test
All tests successful.
After adding $\="\n" before the call to Mail::POP3Client
see attached pb-patchfile if in doubt :-)
$ make test
t/poptest....FAILED tests 6, 8, 10, 13
Failed 4/26 tests, 84.62% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/poptest.t 26 4 15.38% 6 8 10 13
Failed 1/1 test scripts, 0.00% okay. 4/26 subtests failed, 84.62% okay.
after adding DEBUG => 1 to the call to Mail::POP3Client()
you would get the pop3 protocol exchange in attached FILE trace-nok
The corresponding with $\="\n" commented out is in trace-ok
Interestingly tracefiles seem to indicate that you send the same stuff
to the server in both cases (though adding $\="\n" clearly make a
difference !!!).
Submitted correction-patchfile seems to fix the problem, please double
check cases of a message ending with blank lines.
Subject: | trace-nok |
Message body not shown because it is not plain text.
Subject: | trace-ok |
Message body not shown because it is not plain text.
Subject: | correction-patchfile |
Message body not shown because it is not plain text.
Subject: | pb-patchfile |
Message body not shown because it is not plain text.