Skip to content

Latest commit

 

History

History

pgp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

tidemail-plugin-pgp

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.

Install

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.

Settings

  • Key trust (gpg by default): gpg follows GnuPG's trust rules, so recipients' keys must be signed or trusted. always encrypts to any key in your keyring.

Passphrases

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.

What it does not do

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.

Tests

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.