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 c

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: > > > 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?

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, wrote: > On Tuesday, November 20, 2012 1:48:46 PM UTC-8, Chris Angelico wrote: >> On Wed, Nov 21, 2012 at 8:14 AM, 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

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 inte

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, 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 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

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, 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? You're