Re: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread Chris Angelico
On Wed, Nov 21, 2012 at 8:14 AM, brint...@controlledthinking.com wrote: Hello: I have a multihomed machine that I would like to run the Python imaplib's IMAP4 client on. I would like to be able to specify which interface the underlying socket will bind to as its source address. How could

RE: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread Prasad, Ramit
brint...@controlledthinking.com wrote: Hello: I have a multihomed machine that I would like to run the Python imaplib's IMAP4 client on. I would like to be able to specify which interface the underlying socket will bind to as its source address. How could I best do this? One assumes

Re: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread brintoul
On Tuesday, November 20, 2012 1:48:46 PM UTC-8, Chris Angelico wrote: On Wed, Nov 21, 2012 at 8:14 AM, brintoul at controlledthinking.com wrote: Hello: I have a multihomed machine that I would like to run the Python imaplib's IMAP4 client on. I would like to be able to specify

Re: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread brintoul
On Tuesday, November 20, 2012 1:59:34 PM UTC-8, Prasad, Ramit wrote: brintoul at controlledthinking.com wrote: Hello: I have a multihomed machine that I would like to run the Python imaplib's IMAP4 client on. I would like to be able to specify which interface the

Re: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread Chris Angelico
On Wed, Nov 21, 2012 at 9:00 AM, brint...@controlledthinking.com wrote: On Tuesday, November 20, 2012 1:48:46 PM UTC-8, Chris Angelico wrote: On Wed, Nov 21, 2012 at 8:14 AM, brintoul at controlledthinking.com wrote: I have a multihomed machine that I would like to run the Python imaplib's

RE: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread Prasad, Ramit
brint...@controlledthinking.com wrote: I have a multihomed machine that I would like to run the Python imaplib's IMAP4 client on. I would like to be able to specify which interface the underlying socket will bind to as its source address. How could I best do this? [snip] While

Re: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread brintoul
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

RE: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread Prasad, Ramit
brint...@controlledthinking.com wrote: 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