Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33669

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

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 <ramit.prasad@jpmorgan.com>
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" <ramit.prasad@jpmorgan.com>
To "brintoul@controlledthinking.com" <brintoul@controlledthinking.com>, "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.105.1353448752.29569.python-list@python.org> (permalink)
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

Show key headers only | View raw


brintoul@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 by programming.

> 
> Thanks for any help...

You are quite welcome. :)

On a less flippant note, maybe some links would help you 
get started.

http://www.doughellmann.com/PyMOTW/imaplib/
http://yuji.wordpress.com/2011/06/22/python-imaplib-imap-example-with-gmail/ 
http://docs.python.org/2/library/imaplib.html


~Ramit


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Choosing Source Address to Bind Socket to in IMAP Client brintoul@controlledthinking.com - 2012-11-20 13:14 -0800
  Re: Choosing Source Address to Bind Socket to in IMAP Client Chris Angelico <rosuav@gmail.com> - 2012-11-21 08:47 +1100
    Re: Choosing Source Address to Bind Socket to in IMAP Client brintoul@controlledthinking.com - 2012-11-20 14:00 -0800
      Re: Choosing Source Address to Bind Socket to in IMAP Client Chris Angelico <rosuav@gmail.com> - 2012-11-21 09:35 +1100
    Re: Choosing Source Address to Bind Socket to in IMAP Client brintoul@controlledthinking.com - 2012-11-20 14:00 -0800
  RE: Choosing Source Address to Bind Socket to in IMAP Client "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-11-20 21:58 +0000
    Re: Choosing Source Address to Bind Socket to in IMAP Client brintoul@controlledthinking.com - 2012-11-20 14:12 -0800
      RE: Choosing Source Address to Bind Socket to in IMAP Client "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-11-20 22:41 +0000
        Re: Choosing Source Address to Bind Socket to in IMAP Client brintoul@controlledthinking.com - 2012-11-20 14:55 -0800
          RE: Choosing Source Address to Bind Socket to in IMAP Client "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-11-20 23:10 +0000
        Re: Choosing Source Address to Bind Socket to in IMAP Client brintoul@controlledthinking.com - 2012-11-20 14:55 -0800
    Re: Choosing Source Address to Bind Socket to in IMAP Client brintoul@controlledthinking.com - 2012-11-20 14:12 -0800

csiph-web