add X-gpgmymail-Status header

This commit is contained in:
revsuine 2024-11-15 17:55:22 +00:00
parent 182e1ceb43
commit f5a31997cf
Signed by: revsuine
GPG key ID: 3F257B68F5BC9339
2 changed files with 21 additions and 2 deletions

View file

@ -1,7 +1,14 @@
# gpgmymail
Takes an email from stdin and encrypts it using the recipient's PGP key,
provided as an argument when calling the script.
Takes an email from stdin and encrypts it to stdout using the recipient's PGP
key, provided as an argument when calling the script.
Leaves a `X-gpgmymail-Status` header on the email, which has the following
statuses:
* `entered` - the email has entered the encryption function, but not been
encrypted
* `encrypted` - the encryption function has encrypted the email
Written to be a Sieve filter to be used with `sieve_extprograms`. Can be used
in a Sieve filter e.g.: