Re: [PATCH v2 05/10] crypto: index encrypted parts when indexopts try_decrypt is set.

Subject: Re: [PATCH v2 05/10] crypto: index encrypted parts when indexopts try_decrypt is set.

Date: Tue, 10 Oct 2017 00:27:44 -0400

To: Jani Nikula, Notmuch Mail

Cc:

From: Daniel Kahn Gillmor


On Sat 2017-09-23 19:05:40 +0300, Jani Nikula wrote:
> I'd like this #if block to be abstracted to separate functions for gmime
> 2 vs. 3. Adding conditional compilation within functions is ugly and
> hard to track for both branches.

That abstraction has already happened -- it's in util/crypto.c; there's
simply a chunk of code that gmime 2.6 needs that gmime 3.0 does not. :/

i welcome suggestions for how to rewrite this if you really think it's a
problem, but i hope the latest revision of this series (which groups all
changes into a single, cleaned-up #if block) will be acceptable.

        --dkg
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: