Inline PGP Within HTML

Mark H. Wood mwood at iupui.edu
Thu Apr 30 14:53:32 UTC 2020


On Thu, Apr 30, 2020 at 05:38:24AM +0100, Dave Woodfall wrote:
> On 2020-04-28 00:20,
> David Engel <david at istwok.net> put forth the proposition:
> > On Mon, Apr 27, 2020 at 06:28:55PM -0500, Sven Semmler wrote:
> > > On Sat, Apr 25, 2020 at 09:46:48PM -0500, David Engel wrote:
> > > > I've since written a filter to preprocess the HTML and remove the
> > > > extra formatting before passing it to w3m.  The traditional PGP coming
> > > > out of w3m is now properly formatted.  Alas, Mutt doesn't recognize it
> > > > and automatically decrypt it.
> > >
> > > I wonder if you could just forward that sanitized block to yourself as
> > > plain-text ... then mutt should deal with it just fine?
> > >
> > > It would add 2-3 keystrokes and be miles away from elegant ... but if it
> > > works until you find a better solution...
> >
> > I tried that and Mutt forwards the original email in tact.  Unless
> > there's another forward command that sends the decoded text (I didn't
> > find ont), I don't think it will work.
> 
> I've never tried to work with encrypted messages via a script, but I
> hope this is helpful or gives you some ideas.
> 
> The only thing I can think of is keep trying shell scripting a
> solution that would -dump the content from stdin to text, divide the
> parts, and then maybe either pipe to less to view it (not so useful
> for replying) or email/forward it back to yourself using either the
> mutt command line, or mail/mailx + sendmail or whichever MTA you have
> handy, hopefully keeping the headers intact or add the envelope from.
> 
> Perhaps decode the encrypted part with gpg from the script, before
> forwarding it to yourself.

A couple more ideas:

'maildrop' comes with some nice tools for working with mail in
scripts.  (It's also a rather good filtering / routing / piping /
you-name-it MDA.)

Python has some nice standard library classes that are really good at
working with mailboxes (all kinds) and individual messages.

-- 
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20200430/b485a369/attachment.asc>


More information about the Mutt-users mailing list