Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #33681
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <brintoul@controlledthinking.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'socket': 0.05; 'override': 0.07; 'python': 0.09; 'subclass': 0.09; 'subject:Source': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; '2.7': 0.13; 'bind': 0.16; 'helps!': 0.16; 'imap4': 0.16; 'wrote:': 0.17; 'thanks,': 0.18; 'question.': 0.20; 'object.': 0.22; 'cc:2**1': 0.24; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; "i'm": 0.29; 'connection': 0.30; 'gets': 0.32; 'help,': 0.32; 'could': 0.32; 'docs': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'anything': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'your': 0.60; 'from:no real name:2**0': 0.60; 'link': 0.60; 'more': 0.63; '20,': 0.65; 'subject:Client': 0.84 |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=path:newsgroups:date:in-reply-to:complaints-to:injection-info :nntp-posting-host:references:user-agent:x-google-web-client :x-google-ip:mime-version:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=g4WaUyKzsbVBRKJ1oPhReh2D7VLZdlvPW2y2NMmDugs=; b=jqO7PBjFFJ0Vei37JwnljBRh8moTtNfbx+UsqGePzgNxaXgQrOMEJIKd1Wdqi1OV8F gEEWeGmtQRBylOpTX4GghfgEDZL5wCvr5M3SqqLPGEuQyCtYv6uqZ5SPTAQUCgTKE46b wP8EMEyGsi0iObZAZrLy/HtUVpEkD2Cv3fpRX++q5VsajTFuVusdEQkFQyTLZa8We4Hc 1B3xM0d2G9tRzX2U80aitGq4hxlMwV6CfNx0rEXT6rPHJwE2fQ3WujZWf+ctmdKZ3NU0 UNxsJGCdmtbUk4LcAan4bJrWhlg1m7PfzWtZLVPmvzDsS7qYQ1IAU7t6SqAbguoypxva mQVw== |
| Newsgroups | comp.lang.python |
| Date | Tue, 20 Nov 2012 14:55:44 -0800 (PST) |
| In-Reply-To | <mailman.112.1353451280.29569.python-list@python.org> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=2600:4401:c001:1016:186d:a9f7:9d2a:ef7b; posting-account=EjjbUAoAAACUM4MjU1iSfrSUM9caQEYG |
| References | <72731eb3-1521-46f0-8601-8a2df58849d8@googlegroups.com> <mailman.105.1353448752.29569.python-list@python.org> <ff63b325-4295-43c9-aa07-488a581ce5aa@googlegroups.com> <mailman.112.1353451280.29569.python-list@python.org> |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| X-Google-IP | 2600:4401:c001:1016:186d:a9f7:9d2a:ef7b |
| MIME-Version | 1.0 |
| Subject | Re: Choosing Source Address to Bind Socket to in IMAP Client |
| From | brintoul@controlledthinking.com |
| To | comp.lang.python@googlegroups.com |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Gm-Message-State | ALoCoQmPQNL6wIrTxvnF/Y5yMpKiSRd6JpdDSNVxpjMRDhA07mC5QmVL5JMeTutIM5tSKf2kftKl |
| Cc | "python-list@python.org" <python-list@python.org>, "brintoul@controlledthinking.com" <brintoul@controlledthinking.com> |
| 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> |
| Message-ID | <mailman.114.1353452147.29569.python-list@python.org> (permalink) |
| Lines | 21 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1353452147 news.xs4all.nl 6981 [2001:888:2000:d::a6]:47146 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:33681 |
Show key headers only | View raw
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 ...
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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