diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2011-05-25 18:01:18 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-05-27 16:22:00 -0700 |
commit | 2e653db38fc38dee92b2ee0564e27921132e7232 (patch) | |
tree | d8bdc5eca6bc2beb6949f375a2e6683b0136ffe6 /notmuch-client.h | |
parent | 8b18efe171ef80cbb238a9446137c39908755d2d (diff) |
Add decryption of PGP/MIME-encrypted parts with --decrypt.
This adds support for decrypting PGP/MIME-encrypted parts to
notmuch-show and notmuch-reply. The --decrypt option implies
--verify. Once decryption (and possibly signature verification) is
done, a new part_encstatus formatter is emitted, the part_sigstatus
formatter is emitted, and the entire multipart/encrypted part is
replaced by the contents of the encrypted part.
At the moment only a json part_encstatus formatting function is
available, even though decryption is done for all formats. Emacs
support to follow.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r-- | notmuch-client.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index dc4ed7aa..8a272603 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -67,6 +67,7 @@ typedef struct notmuch_show_format { const char *body_start; void (*part_start) (GMimeObject *part, int *part_count); + void (*part_encstatus) (int status); void (*part_sigstatus) (const GMimeSignatureValidity* validity); void (*part_content) (GMimeObject *part); void (*part_end) (GMimeObject *part); @@ -82,6 +83,7 @@ typedef struct notmuch_show_params { int raw; int part; GMimeCipherContext* cryptoctx; + int decrypt; } notmuch_show_params_t; /* There's no point in continuing when we've detected that we've done |