qmail-pop3d broken LAST command

2001-01-25 Thread Eng. Ramy M. Hassan


I noticed that qmail-pop3d always responds with: 
+OK 0 to the pop3 command LAST
This behavior makes pop3 clients like fetchmail unable to know which
messages are new and thus download all the messages. So running fetchmail
two successive times without deleting mail from the pop3 server would retrieve
two copies of all messages.
Is there any patch out for that ?
Thanks


Re: qmail-pop3d broken LAST command

2001-01-25 Thread Michael Maier

 I noticed that qmail-pop3d always responds with:   +OK 0 to the pop3
 command LAST
 This behavior makes pop3 clients like fetchmail unable to know which
 messages are new and thus download all the messages. So running
 fetchmail two successive times without deleting mail from the pop3
 server would retrieve two copies of all messages.
 Is there any patch out for that ?

 Thanks

http://homepages.munich.netsurf.de/Franz.Sirl/qmail-pop3d-1.03.diff
--
CYA, Michael




Re: qmail-pop3d broken LAST command

2001-01-25 Thread Charles Cazabon

Eng. Ramy M. Hassan [EMAIL PROTECTED] wrote:
 I noticed that qmail-pop3d always responds with:   +OK 0 to the pop3
 command LAST.

LAST is a broken design; it requires the server to maintain state information
which really should be stored on the client.

 This behavior makes pop3 clients like fetchmail unable to know which
 messages are new and thus download all the messages.

No.  Your POP3 retriever should just use the UIDL command to get a unique
signature for the message, and keep a list of signatures which it has already
seen.

My own POP3 retriever, getmail, does this.  It works quite happily with
qmail-pop3d and every other POP3 daemon I've tried.  There are a few ancient
POP3 servers out there which don't support UIDL, though.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---