weedom has asked for the wisdom of the Perl Monks concerning the following question:

hello. I'm building a pop3 server, just for fun, and RFC1939 tells me to print out a decimal 064 "termination octet" after a multiline response from the server. I've tried
print "\064\n\r" #and print "\064$CRLF"

but Thunderbird still times out waiting for the termincation octet. (I've turned on logging in Thunderbird so that I know exactly where it's pausing). How do I print this octet properly?

Replies are listed 'Best First'.
Re: pop3 termination octet
by gellyfish (Monsignor) on Feb 09, 2005 at 10:54 UTC

    The RFC actually reads:

    When all lines of the response have been sent, a final line is sent, consisting of a termination octet (decimal code 046, ".") and a CRLF pair.
    What you want to be printing is:
    print ".\r\n";

    /J\

Re: pop3 termination octet
by ambrus (Abbot) on Feb 09, 2005 at 10:52 UTC
    "\064" is an octal 064, not a decimal 064.