[plt-scheme] bug in pop3.scm ?

From: Eli Barzilay (eli at barzilay.org)
Date: Thu May 20 01:37:41 EDT 2004

On May 19, Pedro Pinto wrote:
> Hi there,
> 
> I think there might be a bug in the pop3 collection. The issue is with 
> the following function, used to send commands to a POP server:
> 
> (define send-to-server
>     (lambda (communicator message-template . rest)
>       (apply fprintf (communicator-sender communicator)
>          (string-append message-template "~n") ;; <----- ~n results in LF
>          rest)))
> 
> The POP3 RFC specifies that each command should be terminated with CR + 
> LF (ASCII 13, ASCII 10) . On Windows "~n" produces a LF only. Some POP 
> servers do not like this. Changing the ~n above to \r\n seems to work.

That's not the first one...  Fixed in CVS.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.