aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorGravatar Jameson Graef Rollins <jrollins@finestructure.net>2011-05-25 18:01:17 -0700
committerGravatar Carl Worth <cworth@cworth.org>2011-05-27 16:22:00 -0700
commit8b18efe171ef80cbb238a9446137c39908755d2d (patch)
tree68f344312f9c55057b1541d2acf2ce43bfd89054 /notmuch-client.h
parent627d752501b42326b9016271de33a6cb0fa2dc8c (diff)
Add signature verification of PGP/MIME-signed parts with --verify.
This is primarily for notmuch-show, although the functionality is added to show-message. Once signatures are processed a new part_sigstatus formatter is emitted, and the entire multipart/signed part is replaced with the contents of the signed part. At the moment only a json part_sigstatus formatting function is available. Emacs support to follow. The original work for this patch was done by Daniel Kahn Gillmor <dkg@fifthhorseman.net> whose help with this functionality I greatly appreciate.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index b278bc77..dc4ed7aa 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_sigstatus) (const GMimeSignatureValidity* validity);
void (*part_content) (GMimeObject *part);
void (*part_end) (GMimeObject *part);
const char *part_sep;
@@ -80,6 +81,7 @@ typedef struct notmuch_show_params {
int entire_thread;
int raw;
int part;
+ GMimeCipherContext* cryptoctx;
} notmuch_show_params_t;
/* There's no point in continuing when we've detected that we've done
@@ -233,4 +235,7 @@ notmuch_config_set_maildir_synchronize_flags (notmuch_config_t *config,
notmuch_bool_t
debugger_is_active (void);
+GType
+notmuch_gmime_session_get_type (void);
+
#endif