Oberon Community Platform Forum
November 19, 2019, 06:27:24 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

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


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

Hi,

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.
http://carnot.yi.org/OberonPage.html#Mail

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.
http://carnot.yi.org/pe.Mail.Mod
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]
  Print  
 
Jump to:  

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