Issue 1055277
Created on 2004-10-27 13:16 by emacsen, last changed 2005-02-14 04:33 by richard.
msg1509 |
Author: [hidden] (emacsen) |
Date: 2004-10-27 13:16 |
|
As discussed on the list, I am unable to get the simap
mailgw to work. Based on my own code, I'm pretty sure
it's not a Python bug, and the IMAP server is set up
correctly. All I get from roundup is:
SOCKET ssl error: The read operation timed out
I'm happy to submit more debugging information if I
knew how to coax it out.
I could, if necessary, submit tcpdumps.
|
msg1510 |
Author: [hidden] (richard) |
Date: 2004-10-27 22:04 |
|
Logged In: YES
user_id=6405
As was pointed out in the roundup-users mailing list response,
the example in the documentation doesn't use SSL. IMAPS does
use SSL.
Try using plain IMAP.
|
msg1511 |
Author: [hidden] (emacsen) |
Date: 2004-10-28 02:37 |
|
Logged In: YES
user_id=990598
I already did this, it was all documented on the list.
Testing IMAP with my IMAP server isn't an option. I can
demonstrate that IMAPS works and that it works *in python*.
|
msg1512 |
Author: [hidden] (richard) |
Date: 2004-10-28 06:04 |
|
Logged In: YES
user_id=6405
OK, here's the code that roundup uses, from roundup/mailgw.py
do_imap():
import imaplib
server = imaplib.IMAP4_SSL(server)
server.login(user, password)
if not mailbox:
(typ, data) = server.select()
else:
(typ, data) = server.select(mailbox=mailbox)
numMessages = int(data[0])
for i in range(1, numMessages+1):
(typ, data) = server.fetch(str(i), '(RFC822)')
# mark the message as deleted.
server.store(str(i), '+FLAGS', r'(\Deleted)')
# process the message
s = cStringIO.StringIO(data[0][1])
s.seek(0)
self.handle_Message(Message(s))
server.close()
server.expunge()
server.logout()
(with a whole bunch of error checking that I've removed for brevity)
|
msg1513 |
Author: [hidden] (richard) |
Date: 2005-02-14 04:33 |
|
Logged In: YES
user_id=6405
With no further information to go with, I'm going to have to close this bug
report.
|
|
Date |
User |
Action |
Args |
2004-10-27 13:16:50 | emacsen | create | |
|