Library for pop over ssl?

M

Marco Herrn

Hi, I know of poplib, which does what I need except that it doesn't
support SSL encryption. imaplib has SSL-support. But I want it with
pop3. Is there a library available that does this or do I have to
implement it myself?

Bye
Marco
 
J

JanC

Marco Herrn said:
Hi, I know of poplib, which does what I need except that it doesn't
support SSL encryption. imaplib has SSL-support. But I want it with
pop3. Is there a library available that does this or do I have to
implement it myself?

You can always use stunnel to SSL-ize a "normal" protocol...
<http://www.stunnel.org/>
 
D

Donn Cave

Quoth JanC <[email protected]>:
| Marco Herrn <[email protected]> schreef:
|> Hi, I know of poplib, which does what I need except that it doesn't
|> support SSL encryption. imaplib has SSL-support. But I want it with
|> pop3. Is there a library available that does this or do I have to
|> implement it myself?
|
| You can always use stunnel to SSL-ize a "normal" protocol...
| <http://www.stunnel.org/>

You can also SSL-ize a protocol in Python. I'm surprised to read
that imaplib has SSL support, because I don't see it in the library
module searching by 'ssl' or 'SSL'. I've had to do it the Python way,
so to speak: subclass IMAP4, implement a fileobject-like object, etc.
This should be feasible for POP3 as well - a quick look suggests that
it might be enough to copy its __init__ and rewrite it. The fileobject
emulation is to get pop3.file.readline et al. to call sslobject.read.

Donn Cave, (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top