all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Marvin ‘quintus’ Gülker" <post+emacshelp@guelker.eu>
To: help-gnu-emacs@gnu.org
Subject: Re: Gnus: Store message in PGP-decrypted form
Date: Wed, 10 Jun 2020 10:42:13 +0200	[thread overview]
Message-ID: <87imfzmhwa.fsf@guelker.eu> (raw)
In-Reply-To: <87lfkv4s55.fsf@gmail.com> (Jamie Beardslee's message of "Wed, 10 Jun 2020 13:38:14 +1200")

Am Mittwoch, dem 10. Juni 2020 schrieb Jamie Beardslee:
> It's not exactly what you want, but `epa-decrypt-region' usually works
> for my needs.  In any case, here's a little function to decrypt some
> saved mail.

This looks already quite nice, thank you! It is a step in the right
direction, but both Gnus and mutt fail to display the message after it
has been modified this way. This is because the MIME structure is broken
by the lexical replacement. What is required is to remove the MIME part
which is application/pgp-encrypted and replace it with the decrypted
MIME structure contained therein; then the message's toplevel MIME type
needs to be adjusted.

I think I can implement that, and surely there's a way to get it hooked
up to Gnus somehow. If not, I will write again. For now, does somebody
know if there is an easy way to parse the MIME structure of a mail with
Elisp? I can surely just do what I need directly with text replacements,
but if there is an API for adding and removing MIME parts easily with
Elisp I would rather use that one. After all, Gnus needs to parse the
MIME structure somehow as well. Maybe I should just look at its source
code...

In any case, I infer that there is no pre-built way to achieve what I
want. Until I get this working (fiddling requires time...), I will thus
continue to use mutt for saving my PGP-encrypted in unencrypted form
mail.

  -quintus

-- 
Blog: https://mg.guelker.eu



  parent reply	other threads:[~2020-06-10  8:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-09  8:02 Gnus: Store message in PGP-decrypted form Marvin ‘quintus’ Gülker
2020-06-10  1:38 ` Jamie Beardslee
2020-06-10  1:49   ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-06-10  1:57     ` Jamie Beardslee
2020-06-10  2:05       ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-06-10  8:42   ` Marvin ‘quintus’ Gülker [this message]
2020-06-10  6:50 ` Teemu Likonen
2020-06-10  8:40   ` Marvin ‘quintus’ Gülker
2020-06-10  9:12     ` Mail folders and searches Teemu Likonen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87imfzmhwa.fsf@guelker.eu \
    --to=post+emacshelp@guelker.eu \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.