Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'socket': 0.05; 'completeness': 0.07; 'welcome.': 0.07; 'python': 0.09; 'received:155': 0.09; 'subject:Source': 0.09; 'underlying': 0.09; 'bind': 0.16; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'from:addr:jpmorgan.com': 0.16; 'hello:': 0.16; 'help...': 0.16; 'imap4': 0.16; 'received:155.180': 0.16; 'received:155.180.234': 0.16; 'received:159.53': 0.16; 'received:159.53.110': 0.16; 'received:169.70': 0.16; 'received:169.70.184': 0.16; 'received:bankone.net': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'received:svr.bankone.net': 0.16; 'securities,': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'wrote:': 0.17; 'specify': 0.17; 'to:name:python-list@python.org': 0.20; 'assumes': 0.22; 'to:2**1': 0.23; 'received:169.254': 0.24; 'machine': 0.24; 'header:In-Reply-To:1': 0.25; 'accuracy': 0.27; 'interface': 0.27; 'this?': 0.28; 'run': 0.28; 'url:06': 0.29; 'received:169': 0.29; 'source': 0.29; 'maybe': 0.29; 'header:Received:8': 0.30; 'url:python': 0.32; 'could': 0.32; 'to:addr:python-list': 0.33; 'thanks': 0.34; 'programming.': 0.35; 'url:org': 0.36; 'url:library': 0.36; 'client': 0.36; 'charset:us- ascii': 0.36; 'address.': 0.36; 'quite': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'url:docs': 0.38; 'to:addr:python.org': 0.39; 'help': 0.40; 'information,': 0.63; 'url:email': 0.63; 'legal': 0.65; 'started.': 0.65; 'subject': 0.66; 'purchase': 0.67; 'url:2011': 0.72; 'url:wordpress': 0.75; 'sale': 0.76; 'flippant': 0.84; 'received:169.254.8': 0.84; 'subject:Client': 0.84 X-DKIM: OpenDKIM Filter v2.1.3 sj1.jpmchase.com qAKLx9X3030225 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpmorgan.com; s=smtpout; t=1353448749; bh=sObURo1XMCvj9ph9vg45dSo97tL6mECh5aHXkbsae7A=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=Tyb8SNvKk7o0RUfsUJlC3iaRgdUK9z6pJq5IGHP8eyXZIwisj5TnHoQKoIiQDy6IA etP8r7HvRMWuMwv9kG22YUix3bQXZH1uoP40gh9M0zbibHTOCpoRivajpNuWNFw1T9 z+e5/pkI2mrybpFgGoZF9qG9ZqfIxOTfqlSE1y2I= From: "Prasad, Ramit" To: "brintoul@controlledthinking.com" , "python-list@python.org" Subject: RE: Choosing Source Address to Bind Socket to in IMAP Client Thread-Topic: Choosing Source Address to Bind Socket to in IMAP Client Thread-Index: AQHNx2UW2PneXNU4Eki5xNtcfprKPJfzRHww Date: Tue, 20 Nov 2012 21:58:55 +0000 References: <72731eb3-1521-46f0-8601-8a2df58849d8@googlegroups.com> In-Reply-To: <72731eb3-1521-46f0-8601-8a2df58849d8@googlegroups.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.67.79.47] Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-DLP-FWD: Yes Content-Type: text/plain; charset="us-ascii" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1353448752 news.xs4all.nl 6910 [2001:888:2000:d::a6]:57532 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33669 brintoul@controlledthinking=2Ecom wrote:=0D=0A> =0D=0A> Hello:=0D=0A> =0D= =0A> I have a multihomed machine that I would like to run the Python imapli= b's IMAP4 client on=2E I would like to be=0D=0A> able to specify which int= erface the underlying socket will bind to as its source address=2E How cou= ld I best do=0D=0A> this?=0D=0A=0D=0AOne assumes by programming=2E=0D=0A=0D= =0A> =0D=0A> Thanks for any help=2E=2E=2E=0D=0A=0D=0AYou are quite welcome= =2E :)=0D=0A=0D=0AOn a less flippant note, maybe some links would help you = =0D=0Aget started=2E=0D=0A=0D=0Ahttp://www=2Edoughellmann=2Ecom/PyMOTW/imap= lib/=0D=0Ahttp://yuji=2Ewordpress=2Ecom/2011/06/22/python-imaplib-imap-exam= ple-with-gmail/ =0D=0Ahttp://docs=2Epython=2Eorg/2/library/imaplib=2Ehtml= =0D=0A=0D=0A=0D=0A~Ramit=0D=0A=0D=0A=0D=0AThis email is confidential and su= bject to important disclaimers and=0D=0Aconditions including on offers for = the purchase or sale of=0D=0Asecurities, accuracy and completeness of infor= mation, viruses,=0D=0Aconfidentiality, legal privilege, and legal entity di= sclaimers,=0D=0Aavailable at http://www=2Ejpmorgan=2Ecom/pages/disclosures/= email=2E