notmuch/lib
Daniel Kahn Gillmor 38bd0df922 lib: index PKCS7 SignedData parts
When we are indexing, we should treat SignedData parts the same way
that we treat a multipart object, indexing the wrapped part as a
distinct MIME object.

Unfortunately, this means doing some sort of cryptographic
verification whose results we throw away, because GMime doesn't offer
us any way to unwrap without doing signature verification.

I've opened https://github.com/jstedfast/gmime/issues/67 to request
the capability from GMime but for now, we'll just accept the
additional performance hit.

As we do this indexing, we also apply the "signed" tag, by analogy
with how we handle multipart/signed messages.  These days, that kind
of change should probably be done with a property instead, but that's
a different set of changes.  This one is just for consistency.

Note that we are currently *only* handling signedData parts, which are
basically clearsigned messages.  PKCS#7 parts can also be
envelopedData and authEnvelopedData (which are effectively encryption
layers), and compressedData (which afaict isn't implemented anywhere,
i've never encountered it).  We're laying the groundwork for indexing
these other S/MIME types here, but we're only dealing with signedData
for now.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2020-05-22 22:10:46 -03:00
..
add-message.cc lib: run uncrustify 2019-06-14 07:41:27 -03:00
built-with.c build: drop support for xapian versions less than 1.4 2020-04-23 21:28:45 -03:00
config.cc notmuch release 0.29.3-1 for unstable (sid) [dgit] 2019-11-27 08:45:43 -04:00
database-private.h lib: run uncrustify 2019-06-14 07:41:27 -03:00
database.cc build: drop support for xapian versions less than 1.4 2020-04-23 21:28:45 -03:00
directory.cc lib: run uncrustify 2019-06-14 07:41:27 -03:00
filenames.c lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
index.cc lib: index PKCS7 SignedData parts 2020-05-22 22:10:46 -03:00
indexopts.c lib: run uncrustify 2019-06-14 07:41:27 -03:00
Makefile fix sum moar typos [build scripts, Makefiles] 2011-06-23 15:44:59 -07:00
Makefile.local lib: add thread subqueries. 2018-05-07 08:42:53 -03:00
message-file.c lib: run uncrustify 2019-06-14 07:41:27 -03:00
message-id.c lib: run uncrustify 2019-06-14 07:41:27 -03:00
message-private.h lib: convert notmuch_bool_t to stdbool internally 2017-10-09 22:27:16 -03:00
message-property.cc lib: run uncrustify 2019-06-14 07:41:27 -03:00
message.cc lib: replace STRNCMP_LITERAL in __message_remove_indexed_terms 2020-05-04 10:55:43 -03:00
messages.c lib: run uncrustify 2019-06-14 07:41:27 -03:00
notmuch-private.h repair: set up codebase for repair functionality 2019-09-01 08:20:25 -03:00
notmuch.h Correct doxygen framing for libnotmuch.h 2020-03-19 21:56:05 -03:00
notmuch.sym build: switch to hiding libnotmuch symbols by default 2017-05-12 07:17:18 -03:00
parse-time-vrp.cc build: drop support for xapian versions less than 1.4 2020-04-23 21:28:45 -03:00
parse-time-vrp.h build: drop support for xapian versions less than 1.4 2020-04-23 21:28:45 -03:00
query-fp.cc build: drop support for xapian versions less than 1.4 2020-04-23 21:28:45 -03:00
query-fp.h build: drop support for xapian versions less than 1.4 2020-04-23 21:28:45 -03:00
query.cc lib: run uncrustify 2019-06-14 07:41:27 -03:00
regexp-fields.cc build: drop support for xapian versions less than 1.4 2020-04-23 21:28:45 -03:00
regexp-fields.h build: drop support for xapian versions less than 1.4 2020-04-23 21:28:45 -03:00
sha1.c lib: run uncrustify 2019-06-14 07:41:27 -03:00
string-list.c lib: run uncrustify 2019-06-14 07:41:27 -03:00
string-map.c lib/string_map: fix return type of string_cmp 2019-03-05 21:46:41 -04:00
tags.c Use https instead of http where possible 2016-06-05 08:32:17 -03:00
thread-fp.cc build: drop support for xapian versions less than 1.4 2020-04-23 21:28:45 -03:00
thread-fp.h build: drop support for xapian versions less than 1.4 2020-04-23 21:28:45 -03:00
thread.cc lib: run uncrustify 2019-06-14 07:41:27 -03:00