Hi,
Has anyone else come across and hopefully found an answer to this?

I'm trying to pick up some mail with Mail::POP3Client, but POP3Client sees a . on it's own on a line as the end of the message, which is happening by chance in some of the mails in the mailbox. I am talking to an Exchange POP3 server. Here is some debug info


POP3 <- valid while stocks last. Photos presented are non-contractual.^M
at ./readmail.pl line 28
POP3 <- ^M
at ./readmail.pl line 28
POP3 <- If you do not wish to receive further e-mails from PIXmania.com, please =^M
at ./readmail.pl line 28
POP3 <- click here <http://mailer.pixmania.com/B9kAXK76flsBAX1JswEAGAAAAF8.html> =^M
at ./readmail.pl line 28
POP3 <- .^M
at ./readmail.pl line 28
POP3 -> TOP 65 0^M
at ./readmail.pl line 29
POP3 <- ^M
at ./readmail.pl line 29
POP3 -> DELE 65^M
at ./readmail.pl line 55
POP3 <- Do not hesitate to contact our customer care support via e-mail =^M
at ./readmail.pl line 55
POP3 -> RETR 66^M
at ./readmail.pl line 28
POP3 <- <http://mailer.pixmania.com/B9kAXK76flsBAX1JswEAGQAAAF8.html>=20^M
at ./readmail.pl line 28
POP3 -> TOP 66 0^M



notice the
<http://mailer.pixmania.com/B9kAXK76flsBAX1JswEAGAAAAF8.html> =^M
at ./readmail.pl line 28
POP3 <- .^M
at ./readmail.pl line 28
POP3 -> TOP 65 0^M


so it's got a .^M assumes the message has ended and sends the next command, but then gets the reply of the next line of the message from the server.

POP3 -> TOP 65 0^M
at ./readmail.pl line 29
POP3 <- ^M
at ./readmail.pl line 29
POP3 -> DELE 65^M
at ./readmail.pl line 55
POP3 <- Do not hesitate to contact our customer care support via e-mail =^M
at ./readmail.pl line 55
POP3 -> RETR 66^M
at ./readmail.pl line 28
POP3 <- <http://mailer.pixmania.com/B9kAXK76flsBAX1JswEAGQAAAF8.html>=20^M


Has anyone else had and found a solution to this problem either by changing the settings on the exchange server or POP3Client?

Thanks very much in advance
Chris

In reply to POP3Client and dots by lawtonca

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.