Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81738
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.076 |
| X-Spam-Evidence | '*H*': 0.85; '*S*': 0.00; 'subject:Getting': 0.07; 'question?': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'oserror': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'error': 0.23; 'copied': 0.24; 'errors.': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'code:': 0.26; 'header:In-Reply-To:1': 0.27; 'testing': 0.29; 'am,': 0.29; "doesn't": 0.30; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'skip:( 20': 0.30; "i'm": 0.30; 'work.': 0.31; 'getting': 0.31; 'subject:from': 0.34; 'could': 0.34; 'problem': 0.35; 'connection': 0.35; 'except': 0.35; 'problem.': 0.35; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'should': 0.36; 'too': 0.37; 'two': 0.37; 'being': 0.38; 'problems': 0.38; 'does': 0.39; 'sure': 0.39; 'failures': 0.60; "you're": 0.61; 'back': 0.62; 'accounts': 0.64; 'different': 0.65; 'mail.': 0.69; 'beatrix': 0.84; 'dealt': 0.91; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=kKwbXTBoIbnS86gSEXrVkQ9do/j62Mf8q31MKOlkTA0=; b=HK/3EoKmvRV0pKAYTqe/cZGOzxqcYc8bzK1h96FYe5ZWjPvvVcdzZ/WWvVVYJGAkED aJgV+0HUr2eLGcqdB35Emw48pNTKQgzxrx7qphwXJ3m5wpecaSxg7Xg+blSE/E7plUXl 7uPm5OxjHwqV+C71wB3dPDXbQWFoA4J3m+dwckogFZ6SVxKZehVMvU0ib/9b/mB3l3kk HpgkPqAdSp9jrRs4vl8zLns+rhChTy8fR62O77bicHtHzqbKN4tYGrW4R+89OtHK/4uf 2WuV17mbGBT11wXpODN17b8EOzn0f113Bp24id8IHNSe0SAk5ahr07soWhGlUaVS2jOV spxQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.42.64.143 with SMTP id g15mr42454379ici.59.1417378319462; Sun, 30 Nov 2014 12:11:59 -0800 (PST) |
| In-Reply-To | <B32A0BD4-1298-4F20-A864-B20C6ACF86D9@beatrixwillius.de> |
| References | <4B0DF114-E705-47B3-9815-003899F174CE@beatrixwillius.de> <CAPTjJmo_eZ=Ga=J6vqasD0EG8ZiVP9OLJE7CGxHa1ba8Jkv9WA@mail.gmail.com> <B32A0BD4-1298-4F20-A864-B20C6ACF86D9@beatrixwillius.de> |
| Date | Mon, 1 Dec 2014 07:11:59 +1100 |
| Subject | Re: Getting errors from Imaplib |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| 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 | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16441.1417378322.18130.python-list@python.org> (permalink) |
| Lines | 22 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1417378322 news.xs4all.nl 2976 [2001:888:2000:d::a6]:56317 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:81738 |
Show key headers only | View raw
On Mon, Dec 1, 2014 at 1:42 AM, Beatrix Willius from Moth Software <mail@beatrixwillius.de> wrote: > no, pinging Yahoo doesn't work. But this is an additional problem - perhaps I tested too often. This is one of my accounts for Imap testing and I only copied the value from Mail. > > For getting the error back this doesn't really matter. I'm not sure what you mean here. There are two ways I could see this being handled: 1) A network connection failure is fundamentally different from an auth problem. That's what you're currently seeing; only auth problems are caught. 2) Network failures and auth problems should be dealt with the same way. Change one line of code: except (imaplib.IMAP4.error, OSError): Now it'll cope with OSError the same way it copes with IMAP errors. Does that answer your question? ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Getting errors from Imaplib Chris Angelico <rosuav@gmail.com> - 2014-12-01 07:11 +1100
csiph-web