The poblem found in ipop3d 2006a-2006c (2004g was OK).

Session log and capture:
-------------------------------------------------------------------------
Nov 15 18:21:38 frolov ipop3d[12074]: Error opening or locking INBOX user=file1 
host=localhost [127.0.0.1]
Nov 15 18:21:38 frolov ipop3d[12074]: Login user=file1 host=localhost 
[127.0.0.1] no mailbox
Nov 15 18:21:38 frolov ipop3d[12074]: Update user=file1 host=localhost 
[127.0.0.1] nmsgs=5 ndele=0
Nov 15 18:21:38 frolov ipop3d[12074]: -ERR Can't get lock.  Mailbox in use^M  
user=file1 host=localhost [127.0.0.1]

+OK POP3 localhost 2006c.94 server ready
user file1
+OK User name accepted, password please
pass file1
+OK Sayonara
Connection closed by foreign host.
-------------------------------------------------------------------------

The status indicator "+OK Sayonara" is wrong because RFC 1939 says:
-------------------------------------------------------------------------
   If the
   maildrop cannot be opened for some reason (for example, a lock can
   not be acquired, the client is denied access to the appropriate
   maildrop, or the maildrop cannot be parsed), the POP3 server responds
   with a negative status indicator.
-------------------------------------------------------------------------

Possible patch:
-------------------------------------------------------------------------
--- ipop3d.c.old        Wed Nov 15 18:48:13 2006
+++ ipop3d.c    Wed Nov 15 18:48:13 2006
@@ -729,9 +729,9 @@
       PSOUT (tmp);
       return TRANSACTION;
     }
-    else logout = "-ERR Can't get lock.  Mailbox in use\015\012";
+    else goodbye = "-ERR Can't get lock.  Mailbox in use\015\012";
   }
-  else logout = "-ERR Unable to open user's INBOX\015\012";
+  else goodbye = "-ERR Unable to open user's INBOX\015\012";
   syslog (LOG_INFO,"Error opening or locking INBOX user=%.80s host=%.80s",
          user,tcp_clienthost ());
   return UPDATE;
-------------------------------------------------------------------------

Session log and capture after patch:
-------------------------------------------------------------------------
Nov 15 19:05:06 frolov ipop3d[12681]: Error opening or locking INBOX user=file1 
host=localhost [127.0.0.1]
Nov 15 19:05:06 frolov ipop3d[12681]: Login user=file1 host=localhost 
[127.0.0.1] no mailbox
Nov 15 19:05:06 frolov ipop3d[12681]: Update user=file1 host=localhost 
[127.0.0.1] nmsgs=5 ndele=0
Nov 15 19:05:06 frolov ipop3d[12681]: Logout user=file1 host=localhost 
[127.0.0.1]

+OK POP3 localhost 2006c.94 server ready
user file1
+OK User name accepted, password please
pass file1
-ERR Can't get lock.  Mailbox in use
Connection closed by foreign host.
-------------------------------------------------------------------------

_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to