jaykay
jaykay

Reputation: 43

How to store decrypted sent messages with mutt + pgp?

I'm using mutt with PGP and would like to store sent messsages in a corresponding IMAP folder. Problem: When I send an encrypted email to somebody, mutt copies the encrypted email to the sent folder, instead of an unencrypted version. Of course, since it is encrypted with the receivers key, I cannot unencrypt this message anymore, making it useless.

Is there a setting in mutt to fix this?

Upvotes: 1

Views: 594

Answers (1)

wbob
wbob

Reputation: 461

The setting you ask for is set fcc_clear=yes. This will save it in cleartext to the Sent folder (see man muttrc for full explanation).

There was a question to the opposite on superuser, so I'll extend my answer to that for a full picture.

Depending on where your "Sent" folder resides, either in a remote IMAP server you want to have fulltext search for (probably need cleartext), or on a local disk that is encrypted at-rest, you have further options:

  • mutt currently has pgp_self_encrypt in tandem with pgp_default_key (added to mutt on 2017-05-29 / 2018-01-15, so check your version) to control the behaviour
  • gnupg has an encrypt-to <keyid> option, but I would prefer the mutt config
  • neomutt has encrypt-to-self

Upvotes: 1

Related Questions