Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

You will not censor me through bug terrorism. -- James Troup


devel / comp.lang.python / Re: Posts from gmane no longer allowed?

SubjectAuthor
o Re: Posts from gmane no longer allowed?Chris Angelico

1
Re: Posts from gmane no longer allowed?

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: rosuav@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: Posts from gmane no longer allowed?
Date: Mon, 27 Sep 2021 01:22:56 +1000
Lines: 90
Message-ID: <mailman.822.1632669789.4164.python-list@python.org>
References: <CAK=1mW7iPRTTixV4pF-fxav1q+VM5ihwpMfmT-o-c+5FXdn1aQ@mail.gmail.com>
<CAPTjJmoHSOcRGWMrQBWwR7aOBj4_Axd6D0+etyiFcgwFwR43Sw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de 3cC69K58ON1aEWjh25qvUQQDy5KZeXtj9akiFmabniJg==
Return-Path: <rosuav@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=Gx0wmmUK;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.006
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'project,': 0.03; 'url-
ip:140.82/16': 0.03; 'this:': 0.03; 'url:support': 0.05; 'usage':
0.05; 'happened': 0.07; '27,': 0.09; 'admins': 0.09; 'aimed':
0.09; 'angelico': 0.09; 'enabled': 0.09; "shouldn't": 0.09;
'token': 0.09; 'url:master': 0.09; 'steps': 0.11; 'url:github':
0.14; 'that.': 0.15; 'url-ip:140/8': 0.15; '"less': 0.16; 'apis':
0.16; 'chrisa': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris
angelico': 0.16; 'idea.': 0.16; 'mutt,': 0.16; 'refresh': 0.16;
'setup,': 0.16; 'subject:gmane': 0.16; 'third-party': 0.16;
'totp': 0.16; 'urls': 0.16; 'wrote:': 0.16; 'grant': 0.17;
'probably': 0.17; 'uses': 0.19; 'addresses': 0.19; 'url': 0.19;
'to:addr:python-list': 0.20; 'option': 0.20; 'written': 0.22;
'application.': 0.22; 'creates': 0.22; 'maybe': 0.22; "i'd": 0.24;
'anything': 0.25; 'python,': 0.25; 'tried': 0.26; 'normally':
0.26; 'so.': 0.26; "isn't": 0.27; 'leave': 0.27; 'bit': 0.27;
'old': 0.27; 'chris': 0.28; 'goes': 0.28; 'it,': 0.29; 'error':
0.29; 'whole': 0.30; 'seem': 0.31; 'wide': 0.31; 'credentials':
0.32; 'domains': 0.32; 'from,': 0.32; 'obtain': 0.32; 'sep': 0.32;
'specified': 0.32; 'to:name:python': 0.32; 'tool.': 0.32;
"wouldn't": 0.32; 'message-id:@mail.gmail.com': 0.32; 'but': 0.32;
"i'm": 0.33; 'mailing': 0.33; 'there': 0.33; 'particular': 0.33;
'able': 0.34; 'same': 0.34; 'requires': 0.34; 'soon.': 0.34;
'work.': 0.34; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'page,': 0.35; 'from:addr:gmail.com':
0.35; 'request': 0.35; 'mon,': 0.36; 'posts': 0.36; 'change':
0.36; 'those': 0.36; 'lists': 0.37; 'subject:from': 0.37;
'really': 0.37; 'using': 0.37; "it's": 0.37; 'received:209.85':
0.37; 'this.': 0.37; 'file': 0.38; 'way': 0.38; 'could': 0.38;
'put': 0.38; 'read': 0.38; 'received:209': 0.39; 'list': 0.39;
'use': 0.39; 'still': 0.40; 'something': 0.40; 'want': 0.40;
'try': 0.40; 'should': 0.40; 'services': 0.61; "there's": 0.61;
'policy': 0.62; 'here': 0.62; 'follow': 0.62; 'skip:o 20': 0.63;
'email': 0.63; 'send': 0.63; 'personal': 0.64; 'your': 0.64;
'privacy': 0.64; 'look': 0.65; 'heard': 0.67; 'away': 0.67;
'choose': 0.67; 'that,': 0.67; 'account.': 0.68; 'cost': 0.69;
'creator': 0.69; '2021': 0.71; "you'll": 0.73; '(you': 0.76;
'issued': 0.76; 'domain': 0.77; 'period': 0.81; 'client': 0.82;
'extra': 0.84; 'variety': 0.84; '20+': 0.84; "account's": 0.84;
'owning': 0.84; 'redirect': 0.84; 'surprised': 0.84;
'url:localhost': 0.84; 'subject:Posts': 0.91; 'url:privacy': 0.91;
'google.': 0.95
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=KKxKj1QyZfx1buBmS5d+WJumoHR6MU9G+Ac5hdjaquU=;
b=Gx0wmmUK3Dj352ukegVxRFFdGtOkVUeA0MlZ42jZTWobbXTIEfRwRJUCxYfhti93Rc
/G0UPBuhr82lc3t5IEFAi2YxGuV3ZGiueWLS5itNzpN/otq4aUAbRkJ8eI6sqZ/ph2Tp
JZsGy8cD4FLxAJG1+j+F7zdJokYxVcgsAb7qcVqbafJqNWr4VcFzw/1JHnCwyp67oNJ7
OOiE+6y9KlU+S+xAhPL4M5fm8lQQ+/5UKGMUJdPKLlDUpTOB/HoB/xNmeeCDSPrguFQu
Y7CXmerfBgNq2gEj6Zothq+attiUr4f2j9XrpZfbDaZeenAVOm70TLu6zWYCyWwrr6Gs
gvhw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=KKxKj1QyZfx1buBmS5d+WJumoHR6MU9G+Ac5hdjaquU=;
b=L+CyX4FI7tIku03Fja7sCMR2A212NlG98ugJJRYMBr0lG5xhbyPvvWGk7IMt35L5/w
asR0nnYk2AtRrFEXlmZyLexPBp76yZ5UptG2G2E2JwfeKUSio8k2DgHBJH52MvjViqCT
XKrKtPv6ebU9UsAS79O5IIJ+faZG1TJfdbIvcSKpG3qvi+aPKfP/4jwUKkLv0kiR8sWB
f/xjGU6cabYfbuMbqwleq9vMHlFQe+KnQA3sxM0K0ZKvDVYhiSWtAiRKIfRRttGSKmQo
jGgqwJY22Y7exD0StQdiiRfRltLQXuc9z47tY83RFnq5U10V8VX/d8zp8U+/gm4Xu6UV
Y4Jw==
X-Gm-Message-State: AOAM5329hPWGnD9MtP0PJpYlcJKxQHbFanbGxJfSBpVwdeO4VL3Hzrjf
O9RpVIdrJ4PbGNOOZtfnZwcxFIUCLQGE6avKRK2Oc2nkpMApig==
X-Google-Smtp-Source: ABdhPJxnbyUN21R2PUk8tNd9c9yda7AUxfLRkLWU70orzciomWM4VHFyg8L+LFJxj0EBbzfDUl2hm/TkkDrFpyHYIqk=
X-Received: by 2002:a1c:f405:: with SMTP id z5mr11315303wma.33.1632669787903;
Sun, 26 Sep 2021 08:23:07 -0700 (PDT)
In-Reply-To: <CAK=1mW7iPRTTixV4pF-fxav1q+VM5ihwpMfmT-o-c+5FXdn1aQ@mail.gmail.com>
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: <CAPTjJmoHSOcRGWMrQBWwR7aOBj4_Axd6D0+etyiFcgwFwR43Sw@mail.gmail.com>
X-Mailman-Original-References: <CAK=1mW7iPRTTixV4pF-fxav1q+VM5ihwpMfmT-o-c+5FXdn1aQ@mail.gmail.com>
 by: Chris Angelico - Sun, 26 Sep 2021 15:22 UTC

On Mon, Sep 27, 2021 at 1:10 AM Grant Edwards <grant.b.edwards@gmail.com> wrote:
>
> On 2021-09-26, Chris Angelico <rosuav@gmail.com> wrote:
>
> > Not sure what the significance of the "application" is - Google has
> > different services for where you're using it with your own domain, but
> > that shouldn't be relevant. If you want to use Gmail with mutt, you
> > should be able to do that, regardless. (Or you can just use some other
> > email address to post from, that would also work.)
>
> I have other addresses from which I could post, but I don't want them
> visible on the list.
>
> There are three ways to use mutt (or any other IMAP/SMTP) client with
> GMail.
>
> 1. Plain old username/password authentication: This requires you to
> enable the "less secure apps" option on your Gmail account. I used
> to use that, and it worked. But, it's frowned upon, and I wouldn't
> be surprised if it went away soon. It requires you to either put
> your password in a plaintext config file or enter it every time
> your connect to Gmail.

Agreed, I wouldn't recommend that.

> 2. Application-specific password: Creates a unique 16-digit
> application password that allows access to selected
> capabilities. This requires that you have two-factor
> authentication enabled on your Google account. I probably should
> do that, but I haven't figured out a convenient way to do so.

That would normally be the most convenient for personal usage like
this. It should be possible to use a simple TOTP tool, maybe even one
written in Python, like this:

https://github.com/Rosuav/shed/blob/master/2fa

> 3. OAUTH2: This requires that you "register an application" with
> Google. That application is then issued revokable credentials. The
> application uses those credentials to send an access request to
> Google. The account's owner then goes to a specified URL to
> autorize that access. The application is then issued revokable
> access and refresh tokens. The access token allows access to
> specific APIs for a short period of time (maybe an hour). After
> the access token expires, the refresh token can be used to obtain
> a new access token.

This is primarily aimed at third-party tools, where the user owning
the account isn't the same person as the creator of the tool. That's
why there's all the extra layers. It can certainly be used in a more
personal setup, but you'll probably need to do some
otherwise-unnecessary work. Google in particular is a bit of a hassle
for OAuth (compared to other OAuth providers), due to the wide variety
of services that they provide, some of which cost money. So there are
extra steps to choose which services to activate.

> The "register an application" step is where I got stuck. Other mutt
> users seem to have been able to go to their GMail account's cloud
> services page, create a project, create/register an application, and
> then download OAUTH2 credentials which they then use (via an external
> utility) with programs like mutt and msmtp.
>
> When I tried to "register an application" it demanded support and
> privacy policy URLs for my application. Those URLs had to be using
> domains that had bee pre-registered with Google. The only domain where
> I have a web page is at panix.com, and that domain isn't pre-
> registered with Google. I don't own that domain, so I'm not going to
> try to pre-register it with Google.

The most important address is the redirect URL. If you set that to
something on localhost, Google will know that you're building an
internal-only tool, and won't require anything much for the support
and privacy policy URLs (you could probably just set them to
http://localhost/support and http://localhost/privacy, or maybe even
leave them blank).

(But I'd still recommend an app password. Much easier.)

> I could continue to read the list with slrn, but post using something
> like Thunderbird, but do I really want to set up a whole new MUA just
> for one mailing list? [The other 20+ mailing lists I follow are all
> happy with posts from gmane.]
>

I'm not sure whether the policy change happened on python-list, or at
gmane. From the look of the error message you got, it may have
actually been gmane's decision. Haven't heard anything from the list
admins here about it, either way, so I have no idea.

ChrisA


devel / comp.lang.python / Re: Posts from gmane no longer allowed?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor