Path: csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Paul Boddie Newsgroups: linux.debian.maint.python Subject: Re: Anyone interested in python-pgpy? Date: Tue, 03 Dec 2024 12:30:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Dec 3 11:24:06 2024 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.196 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Mailing-List: archive/latest/22603 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/2357045.SolhvaRZ89@jason Approved: robomod@news.nic.it Lines: 19 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 03 Dec 2024 12:23:46 +0100 X-Original-Message-ID: <2357045.SolhvaRZ89@jason> X-Original-References: <875xo2u70p.fsf@melete.silentflame.com> Xref: csiph.com linux.debian.maint.python:16518 On Monday, 2 December 2024 03:56:54 CET Sean Whitton wrote: > > The script in mailscripts that depends on python-pgpy, > email-print-mime-structure, is a nice, well-documented piece of > software, and it would be a great shame to lose it. I had a look at this script, which I found here when doing a quick search: https://github.com/spwhitton/mailscripts/blob/master/email-print-mime-structure I see that it uses abstractions provided by pgpy as well as invocations of various commands. I've written similar scripts in recent years, initially using the gpg command to do the work, which can be cumbersome, as well as using the GPGME Python bindings provided by python3-gpg in Debian. Maybe this script could be ported to use the GPGME bindings, thus preventing its ejection from, or suppression within, mailscripts. Paul