3 ms·
I still think one of the sanest ways to do this is to set up a filter that takes an email message on standard input, and outputs the same message to a Maildir/m
by e12e 13y ago
I still think one of the sanest ways to do this is to set up a filter that takes an email message on standard input, and outputs the same message to a Maildir/mbox[1], with the body encrypted with the recipients public key (possibly signed by a server key, but that wouldn't add all that much in terms of security, as the server key would have to be always available).
1: Probably one filter that takes an email on standard input, and writes an encrypted "copy" on standard output, and another program that takes a message on standard input and delivers it to a Maildir/mbox:
#.forward pseudocode:
| gpg-encrypt-to-self | deliver
Optionally check if the mail is already encrypted:
if is-gpg-message
then
deliver
else
encrypt-to-self|deliver
fi