[2.055] pop3 locking or multiple mail connection issues

Jason Woodward <[email protected]> Sat, 19 Jun 2004 20:05:25 -0400
Newsgroups gmane.comp.lang.perl.modules.mail-box
Message-ID <[email protected]>
Hi Mark,

Almost there.... there is still an odd issue with multiple logins for POP3 causing scripts that
log in mutliple times to fail as well as persistant script to not release a pop3 connection.

Between two runs, the only difference is the first user has nothing in his inbox, whereas the
second user has 100+ messages.	Notice the output differences in the POP3 server log:

Jun 19 14:45:38 server ipop3d[12657]: pop3 service init from testhost_ip
Jun 19 14:45:38 server ipop3d[12657]: Login user=user1 host=testhost [testhost_ip] nmsgs=0/0
Jun 19 14:45:38 server ipop3d[12657]: Logout user=user1 host=testhost [testhost_ip] nmsgs=0 ndele=0
Jun 19 14:45:39 server ipop3d[12658]: pop3 service init from testhost_ip
Jun 19 14:45:39 server ipop3d[12658]: Login user=user1 host=testhost [testhost_ip] nmsgs=0/0
Jun 19 14:45:39 server ipop3d[12658]: Logout user=user1 host=testhost [testhost_ip] nmsgs=0 ndele=0


Jun 19 14:46:10 server ipop3d[12662]: pop3 service init from testhost_ip
Jun 19 14:46:10 server ipop3d[12662]: Login user=user2 host=testhost [testhost_ip] nmsgs=105/105
Jun 19 14:46:10 server ipop3d[12662]: Logout user=user2 host=testhost [testhost_ip] nmsgs=105
ndele=0
Jun 19 14:46:10 server ipop3d[12663]: pop3 service init from testhost_ip
Jun 19 14:46:10 server ipop3d[12663]: Login user=user2 host=testhost [testhost_ip] nmsgs=105/105
Jun 19 14:46:13 server ipop3d[12664]: pop3 service init from testhost_ip
Jun 19 14:46:13 server ipop3d[12664]: Trying to get mailbox lock from process 12663
Jun 19 14:46:27 server ipop3d[12664]: Mailbox is open by another process, access is readonly
Jun 19 14:46:27 server ipop3d[12664]: Error opening or locking INBOX user=user2 host=testhost
[testhost_ip]
Jun 19 14:46:27 server ipop3d[12664]: Login user=user2 host=testhost [testhost_ip] no mailbox
Jun 19 14:46:27 server ipop3d[12664]: Expunge ignored on readonly mailbox
Jun 19 14:46:27 server ipop3d[12664]: Logout user=user2 host=testhost [testhost_ip] nmsgs=105
ndele=0
Jun 19 14:46:27 server ipop3d[12663]: Logout user=user2 host=testhost [testhost_ip] nmsgs=105
ndele=0

The second user has many more messages, yet the calling script is the same.   Notice the
expected second login... it logs in as expected, but somewhere within Mail::Box::* a second
connection is made while the first is still open.  

This causes more interesting issues when used persistantly.... the extraneous connection is
never released. 

Any idea initially on where this is coming from?  I have sent in an email concerning this
previously (which has the same test script I'm still using to test with): 
http://marc.theaimsgroup.com/?l=perl-mailbox&m=108117640815905&w=2 .  I'll be more than glad to
look into this, any additional information would be appreciated.


take care,
jason