Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Marriage is the sole cause of divorce.


devel / comp.lang.python / Re: imaplib: is this really so unwieldy?

SubjectAuthor
o Re: imaplib: is this really so unwieldy?boB Stepp

1
Re: imaplib: is this really so unwieldy?

<mailman.424.1622395940.3087.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13439&group=comp.lang.python#13439

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: robertvs...@gmail.com (boB Stepp)
Newsgroups: comp.lang.python
Subject: Re: imaplib: is this really so unwieldy?
Date: Sun, 30 May 2021 12:32:05 -0500
Lines: 34
Message-ID: <mailman.424.1622395940.3087.python-list@python.org>
References: <d8904fa5-3f71-1f21-9d16-6f1105b81551@adminart.net>
<YLApha4SV8v0bMVq@cskk.homeip.net>
<CANDiX9KsaBE8eyAHwXr1UkSotW2pRRyMBndYMMWmoFcEubSOYw@mail.gmail.com>
<9885d982-958c-de62-f82c-552242b6b069@adminart.net>
<CANDiX9+d0HJ-_Bx0iyNz0h01ayQE5wZsrZs1bJqgbv7n6HiY=A@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de iX+8DvW90rnOeztIFfnM6QRv0zQh7gZF+rcT/GPfJTPA==
Return-Path: <robertvstepp@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=DNt7MzRT;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.030
X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'string': 0.05; 'sun,':
0.07; 'convert': 0.09; 'modules.': 0.09; 'terminal': 0.09;
'values.': 0.09; 'window.': 0.09; 'steps': 0.10; 'appendix': 0.16;
'bob': 0.16; 'contrary': 0.16; 'from:addr:robertvstepp': 0.16;
'from:name:bob stepp': 0.16; 'module,': 0.16; 'parsing': 0.16;
'stepp': 0.16; 'third-party': 0.16; 'wrote:': 0.16; 'python':
0.16; 'install': 0.22; 'communicate': 0.23; 'to:addr:python-list':
0.23; 'module': 0.28; 'but': 0.31; 'am,': 0.31; 'definitely':
0.31; 'fact': 0.31; "doesn't": 0.32; 'downloads': 0.32;
'retrieve': 0.32; 'message-id:@mail.gmail.com': 0.33; 'using':
0.33; 'server': 0.33; 'header:In-Reply-To:1': 0.33;
'received:google.com': 0.34; 'url-ip:104.17/16': 0.35;
'from:addr:gmail.com': 0.35; 'received:209.85': 0.38; 'author':
0.38; 'hard': 0.38; 'received:209.85.210': 0.38; 'received:209':
0.38; 'does': 0.38; 'example': 0.40; 'messages': 0.40; 'simple':
0.40; 'comes': 0.40; 'sending': 0.40; 'complete': 0.61; 'email':
0.62; 'subject:this': 0.63; 'your': 0.64; 'above': 0.65; 'look':
0.66; 'url:net': 0.66; 'full': 0.68; 'response.': 0.69; 'url-
ip:213/8': 0.69; 'you.': 0.70; 'chapter': 0.71; '2021': 0.84;
'messages,': 0.84; 'subject:really': 0.84; 'url-ip:213.186.33/24':
0.84; 'url-ip:213.186/16': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:content-transfer-encoding;
bh=8GkJoEbLNfIPTjGrYGueKnd30KlyHh2UDTiy+H+YPVY=;
b=DNt7MzRTHgCVQ/RoeI/7Lh2Q54j41Ungb11zhGe0F3dZd3cmVxIb55ACQm2e0Nujxy
Bf8tPi2ELfzS/bCSAgMYzT5pVowzXfLahVrg4W2eqknCWJl04RHyhBdIGXxycCxn8oha
CK7H8APkKDy8TzgqE6108xacZtAV5letVVNSUcCRmnkXTNmNOjJzfv4Oe/1tzKlfSOiL
xEYCaA4Q17X20uFxPWs2IMEDn01236RBz33328S+7TtA6DvFZAf5NomqESSVea4N8hDM
Mr171ifrLQ6sDKHyFg9WV8d/x8jJrdydRPL6hbJKu0QS70nGz4mLNbhBrguwCRmtcW1A
xbxg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-transfer-encoding;
bh=8GkJoEbLNfIPTjGrYGueKnd30KlyHh2UDTiy+H+YPVY=;
b=d47RwYepty+s0FszJn1q4jya7uvpYG5J9HIuHQz1YbQ+a14KT9dgHzk5QmqE21LdTi
xw9Eu/Z6MmjkiRfq9BgswEYAIW6NsOaoaRyBgNHIxSderv9csDTAJRHScpf5qG4jrMfJ
p8aN17L6jOGbgprp6EL5TfUgWYTCzKJT0t6AuqRI8j8pCTJqPqy3lJinscCEKSG3bAlT
Hx7P7mK6Isi1SurcLMuiLb/AlXDyT8WPd0ve+bpTaOPzqlxHEEY2jfJVxXWs2StQ+iAS
JgAvTtFVKSWzfvsDeT3CJv52mZvv39e9GzbZ4kk2+U/5MoF8DWC47ZF1FQUPI+5X6+sH
p+bQ==
X-Gm-Message-State: AOAM531a9ZW1q0jyvyABMuA+lvE1AjUIB832Q3TF1CWSuTAaBadWkIZM
0WVlIWb7Gyluc0g4/RXffUJh7ILTzGWHCtFuJq4yLvId
X-Google-Smtp-Source: ABdhPJwHV+1yw5znn9ocEm3tRwtrQfVxzLOnQMvNK5kVrXDU7bfNSh4nt1rvcjptTaDlArAOqoood+7oughMsDnl/nI=
X-Received: by 2002:a63:338c:: with SMTP id
z134mr19203469pgz.167.1622395937287;
Sun, 30 May 2021 10:32:17 -0700 (PDT)
In-Reply-To: <9885d982-958c-de62-f82c-552242b6b069@adminart.net>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
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: <https://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>
X-Mailman-Original-Message-ID: <CANDiX9+d0HJ-_Bx0iyNz0h01ayQE5wZsrZs1bJqgbv7n6HiY=A@mail.gmail.com>
X-Mailman-Original-References: <d8904fa5-3f71-1f21-9d16-6f1105b81551@adminart.net>
<YLApha4SV8v0bMVq@cskk.homeip.net>
<CANDiX9KsaBE8eyAHwXr1UkSotW2pRRyMBndYMMWmoFcEubSOYw@mail.gmail.com>
<9885d982-958c-de62-f82c-552242b6b069@adminart.net>
 by: boB Stepp - Sun, 30 May 2021 17:32 UTC

On Sun, May 30, 2021 at 1:04 AM hw <hw@adminart.net> wrote:
>
> On 5/28/21 2:36 AM, boB Stepp wrote:

> > <quote>
> > Just as SMTP is the protocol for sending email, the Internet Message
> > Access Protocol (IMAP) specifies how to communicate with an email
> > provider’s server to retrieve emails sent to your email address..
> > Python comes with an imaplib module, but in fact the third-party
> > imapclient module is easier to use. This chapter provides an
> > introduction to using IMAPClient; the full documentation is at
> > http://imapclient.readthedocs.org/.
> >
> > The imapclient module downloads emails from an IMAP server in a rather
> > complicated format. Most likely, you’ll want to convert them from this
> > format into simple string values. The pyzmail module does the hard job
> > of parsing these email messages for you. You can find the complete
> > documentation for PyzMail at http://www.magiksys.net/pyzmail/.
> >
> > Install imapclient and pyzmail from a Terminal window. Appendix A has
> > steps on how to install third-party modules.
> > </quote>

> I don't know which imaplib the author uses; the imaplib I found
> definitely doesn't give uids of the messages, contrary to the example
> he's giving.

Look at the above three paragraphs quoted from my original response.
The author is using *imapclient* and *pyzmail* as the author
indicates.

boB Stepp

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor