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


Groups > comp.lang.python > #81733

Re: Getting errors from Imaplib

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone03.am1.xlned.com!bcyclone03.am1.xlned.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <mail@beatrixwillius.de>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.104
X-Spam-Level *
X-Spam-Evidence '*H*': 0.79; '*S*': 0.00; 'subject:Getting': 0.07; 'archiving': 0.09; 'ping': 0.09; 'try:': 0.09; 'chris,': 0.16; 'wrote:': 0.18; 'import': 0.22; 'error': 0.23; 'copied': 0.24; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'host': 0.29; 'testing': 0.29; 'chris': 0.29; "doesn't": 0.30; 'work.': 0.31; 'getting': 0.31; 'subject:from': 0.34; 'problem': 0.35; 'except': 0.35; 'no,': 0.35; 'but': 0.35; 'really': 0.36; 'too': 0.37; 'to:addr:python-list': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'even': 0.60; "you're": 0.61; 'back': 0.62; 'header:Message-Id:1': 0.63; 'skip:n 10': 0.64; 'received:79': 0.64; 'accounts': 0.64; 'mail.': 0.69; 'from:addr:mail': 0.83; 'received:212.162': 0.84
Content-Type text/plain; charset=utf-8
Mime-Version 1.0 (Mac OS X Mail 8.0 \(1990.1\))
Subject Re: Getting errors from Imaplib
From Beatrix Willius from Moth Software <mail@beatrixwillius.de>
In-Reply-To <CAPTjJmo_eZ=Ga=J6vqasD0EG8ZiVP9OLJE7CGxHa1ba8Jkv9WA@mail.gmail.com>
Date Sun, 30 Nov 2014 15:42:14 +0100
Content-Transfer-Encoding quoted-printable
References <4B0DF114-E705-47B3-9815-003899F174CE@beatrixwillius.de> <CAPTjJmo_eZ=Ga=J6vqasD0EG8ZiVP9OLJE7CGxHa1ba8Jkv9WA@mail.gmail.com>
To python-list@python.org
X-Mailer Apple Mail (2.1990.1)
X-Info valid message
X-Info original Date
X-Mailman-Approved-At Sun, 30 Nov 2014 18:03:45 +0100
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.16439.1417367026.18130.python-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1417367026 news.xs4all.nl 2952 [2001:888:2000:d::a6]:57808
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 3528
X-Received-Body-CRC 1655709292
Xref csiph.com comp.lang.python:81733

Show key headers only | View raw


Hi Chris,

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.

> import imaplib
> 
> host = 'imap.mail.yahoo.com'
> try:
>   imap_connection = imaplib.IMAP4(host)
>   print('success')
> except imaplib.IMAP4.error:
>   print('authentication failed')

> On 30.11.2014, at 13:02, Chris Angelico <rosuav@gmail.com> wrote:
> 
> You're getting an error before it even gets as far as authenticating -
> there's a network-level issue here. Are you able to ping that host?
> Something's not connected.

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals

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


Thread

Re: Getting errors from Imaplib Beatrix Willius from Moth Software <mail@beatrixwillius.de> - 2014-11-30 15:42 +0100

csiph-web