OpenPGP for TideMail, using your own GnuPG. It decrypts and verifies received
mail (message.decode, permission message_raw) and signs and encrypts
outgoing mail (message.prepare, permission message_compose).
TideMail does the MIME work and hands this plugin only the bytes to check or
protect; the plugin runs gpg against your keyring and returns the result. No
key leaves GnuPG.
Needs gpg (GnuPG 2.x) on your PATH, your secret key, and the public keys of
the people you write to.
In TideMail, open Settings → Plugins, press b, select "PGP (GnuPG)" and
press i. Or build it yourself:
cd plugins/pgp
go build -o tidemail-plugin-pgp .
mkdir -p ~/.config/tidemail/plugins/pgp
cp tidemail-plugin-pgp plugin.toml ~/.config/tidemail/plugins/pgp/Restart TideMail after a manual install. In a message, press D to decrypt and verify; in compose,
Alt+S signs and Alt+E encrypts. The user guide has the details and limits:
PGP encryption and signing.
- Key trust (
gpgby default):gpgfollows GnuPG's trust rules, so recipients' keys must be signed or trusted.alwaysencrypts to any key in your keyring.
GnuPG asks for your passphrase through pinentry, which must be graphical or be
served by an agent that has the passphrase cached (a terminal pinentry cannot
draw over TideMail). The plugin has up to two minutes (timeout in
plugin.toml) for you to answer.
No key management (use gpg), no key-server lookups (they are disabled so
nothing leaks about whom you write to), no attachments inside encrypted mail
on the reading side yet.
go test ./... generates throwaway keys in a temporary GNUPGHOME and drives
real gpg. The tests are skipped when gpg is missing. The full round trip
through TideMail's plugin runtime (encrypt, sign, decrypt, tamper) lives in the
TideMail repository, internal/pgpmail/e2e_test.go, and runs against this
directory in CI.