Oberon Community Platform Forum
December 07, 2019, 07:23:55 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
Author Topic: POP3 Syntax Error in Oberon.Mail.Mod  (Read 2947 times)
Full Member
Posts: 100

« on: September 18, 2013, 11:27:48 PM »


Referring to the POP3 protocol, RFC 1939, Section 3 states "Keywords and arguments are each[sic] separated by a single SPACE character." Space characters are correctly inserted by Oberon.Mail.SendCmd. The space prepended to an argument of one digit by Oberon.Mail.NrToArg is erroneous. In fact NrToArg is redundant and Strings.IntToStr can be used directly. Some POP servers might tolerate the error but the Zimbra POP3 server reports "-ERR unable to parse msg" and refuses to cooperate.  The problem has existed since the implementation in NO and is documented.

Oberon.Mail.Mod has three instances of "NrToArg"; one in each of DeleteMail, ReceiveMail and MessageSize.  Please replace each with "Strings.IntToStr" as in this module from NO.
The code is the same in NO and in A2.  Scroll down to PROCEDURE DeleteMail.  For tidiness, the definition of NrToArg can be removed.
Thanks,          ... Peter E.

« Last Edit: September 18, 2013, 11:32:51 PM by peasthope » Logged
Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!