Choosing Source Address to Bind Socket to in IMAP Client

brintoul at controlledthinking.com brintoul at controlledthinking.com
Tue Nov 20 23:55:44 CET 2012


On Tuesday, November 20, 2012 2:41:58 PM UTC-8, Prasad, Ramit wrote:
> brintoul at controlledthinking.com wrote:
> 
> Apologies, I misread your question. 
> 
> 
> 
> According to the imaplib docs, you can subclass IMAP4 and override 
> 
> `IMAP4.open` to create the socket and bind it to the desired interface.
> 
> You could also connect using IMAP4 and then close/reopen the socket
> 
> inside the IMAP4 connection object. 
> 
> I hope that is more help,
> 
> Ramit
> 

Thanks, yes, that helps!  Just out of curiosity, can you give me a quick link to the docs you are looking at?  I'm not seeing anything which gets very specific in the docs for Python 2.7 at docs.python.org ...


More information about the Python-list mailing list