Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Computers are useless. They can only give you answers. -- Pablo Picasso


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

SubjectAuthor
o Re: imaplib: is this really so unwieldy?hw

1
Re: imaplib: is this really so unwieldy?

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: hw...@adminart.net (hw)
Newsgroups: comp.lang.python
Subject: Re: imaplib: is this really so unwieldy?
Date: Thu, 27 May 2021 21:08:22 +0200
Lines: 27
Message-ID: <mailman.381.1622142509.3087.python-list@python.org>
References: <21fb6c5f-97a4-654b-887f-2c31a549bcbe@adminart.net>
<s8ivl8$aev$2@ciao.gmane.io>
<e3894634-3d6b-ecc8-7bb3-81fd3416ba41@adminart.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de rWqDCRJU2Yrz1Z4VaS0vyQLiUxRjb0/SzVQDaaahFaOA==
Return-Path: <hw@adminart.net>
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=adminart.net header.i=@adminart.net header.b=mt7WFnE7;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.033
X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'url-ip:140.82/16': 0.03;
'url-ip:140/8': 0.12; 'url:github': 0.13; 'received:(client did
not present a certificate)': 0.16; 'wrapper': 0.16; 'wrote:':
0.16; 'python': 0.16; 'grant': 0.17; 'pm,': 0.20; 'to:addr:python-
list': 0.23; 'received:de': 0.24; "isn't": 0.29; 'header:User-
Agent:1': 0.31; 'think': 0.31; 'stuff': 0.31; "i'm": 0.32;
'program': 0.33; 'using': 0.33; 'server': 0.33; 'header:In-Reply-
To:1': 0.33; 'yes,': 0.35; 'currently': 0.37; "it's": 0.38;
'something': 0.38; 'ago': 0.40; 'simply': 0.62; 'subject:this':
0.63; 'years': 0.67; 'bad': 0.68; 'subject:really': 0.84
ARC-Seal: i=1; a=rsa-sha256; t=1622142502; cv=none;
d=strato.com; s=strato-dkim-0002;
b=UM7u48eJDtaAEqRoLWFOVGWZIv2GzjCD/ZDxQ+XcAsqHwTW3bPCCm66hhcjPqf6zur
V4C3VsJ+2Pk7LLzMW8I8ZfuRUkEdjwU21xxHTvUbDv20QINrFLVIr4mv9YTtJWLhUHGA
6XGUJwpcfEKAVkzlPb4bBCPUxmmsblv4CQNnTI3owBW+xcP0ENCXA0qgFKoZ0sQhabMM
Jcg9Czit7uPBOQmnUfh1qGCq5CDT8ZS9XuEE87l8P1Q+X/6nyHiUn4UrKgViyAtOSmqB
rOlI7dU1v0UNBaXDXCXuKvwS/47b4u7AynkWWMOAzF+9q8mDwO6xKowvhO9llebo9DjJ
4LqA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1622142502;
s=strato-dkim-0002; d=strato.com;
h=In-Reply-To:Date:Message-ID:From:References:To:Subject:Cc:Date:From:
Subject:Sender;
bh=ykCNOtdDVumDp9pI72VsJ32b43oOls6FnqaR/ZlPv+I=;
b=RMXnrB4dpc45i9HXhyv6pZ3PO/K6dcU6IBjb0PGDkZgth6nW/1cPgBUS7EEIz58Nfo
MWyIrkrgT0A1MpaJ7cS3d63i3EQ1SOyVZCwNHFGseAE20jOGT1qN9IW08wpgrp/TIm4w
63I2v26buYcThcnmM/1jmmZNvNRWA9vvU1n08G7AtqZx64Tu0XQko/GWcTaoFCmMyyX2
LTi1cTwriFCXCqAh0ajq/5E29lhIA9ulKuM3BS8og2ErJbRIkv9E/yfl/n1c6cQdnK/B
wHKgYoQ9c+c7BRkspP1C9miKf/NkGXECr08aY6+MGAsAUcY9CYM+rqJUxDsyHCWp6F6g
eZEg==
ARC-Authentication-Results: i=1; strato.com;
dkim=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1622142502;
s=strato-dkim-0002; d=adminart.net;
h=In-Reply-To:Date:Message-ID:From:References:To:Subject:Cc:Date:From:
Subject:Sender;
bh=ykCNOtdDVumDp9pI72VsJ32b43oOls6FnqaR/ZlPv+I=;
b=mt7WFnE7FzMu3YaTpJxfU5nN+rIMvRMHiSPtwLe1yFQv1yJk7yJpFpiSLhTaqY9f/J
jYYGvm1yCNVbMV4sKMi51NqXmXNpdw5aGUtR9IGZ1D6XNsVY8gSIh/0fnVnd7h2yfc/x
yLmIBjj8+YMpBpGGHom8+J832xGDXkKerE7DDGwJ/WnpQAvlYxFFG5axDubkILUb0PX5
1LZz0UfYpoOvaBkE/tZPtF7XsHG7DGXtTttDchWXf27+jMSOMLsZJRGYME+cfXA2JxyI
WXldIhxMylG1V4GhVs3O7Q5Y+AK4tY0RicWkmZi2kSclC5J5m/beRXxr7n0JlRLGgtqk
0Qfw==
Authentication-Results: strato.com;
dkim=none
X-RZG-AUTH: ":O2kGeEG7b/pS1Ey9Rna9iAZFrfz26y6zbtmqiE/f0+LThi5xYO8s9RmVPkxvrwQpRPenk8HVxDf4aQ=="
X-RZG-CLASS-ID: mo00
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.10.1
In-Reply-To: <s8ivl8$aev$2@ciao.gmane.io>
Content-Language: de-DE
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: <e3894634-3d6b-ecc8-7bb3-81fd3416ba41@adminart.net>
X-Mailman-Original-References: <21fb6c5f-97a4-654b-887f-2c31a549bcbe@adminart.net>
<s8ivl8$aev$2@ciao.gmane.io>
 by: hw - Thu, 27 May 2021 19:08 UTC

On 5/25/21 3:55 PM, Grant Edwards wrote:
> On 2021-05-25, hw <hw@adminart.net> wrote:
>
>> I'm about to do stuff with emails on an IMAP server and wrote a program
>> using imaplib
>
> My recollection of using imaplib a few years ago is that yes, it is
> unweildy, oddly low-level, and rather un-Pythonic (excuse my
> presumption in declaring what is and isn't "Pythonic").

It's good to know that it's not me and that I simply made a bad pick for
something to learn python with :)

> I switched to using imaplib2 and found it much easier to use. It's a
> higher-level wrapper for imaplib.
>
> I think this is the currently maintained fork:
>
> https://github.com/jazzband/imaplib2
>
> I haven't activly used either for several years, so things may have
> changed...
>
> --
> Grant
>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor