Re: [RFC PATCH 3/5] cli: add support for not deduplicating notmuch address results

Subject: Re: [RFC PATCH 3/5] cli: add support for not deduplicating notmuch address results

Date: Sun, 30 Aug 2015 10:33:04 +0300

To: David Bremner, notmuch@notmuchmail.org

Cc:

From: Jani Nikula


On Sun, 30 Aug 2015, David Bremner <david@tethera.net> wrote:
> Jani Nikula <jani@nikula.org> writes:
>
>
>> +	{ NOTMUCH_OPT_KEYWORD, &ctx->dupe, "deduplicate", 'x',
>
> probably you want 'D' or 'd' here. Not that it makes a practical
> difference at this point.
>
>> +	  (notmuch_keyword_t []){ { "yes", -1 },
>
> I'm not very enthusiastic about reusing ctx->dupe for this.
> In particular the use of -1 for yes is off-putting
> It seems better to allocate another word of memory and use an
> enum, as elsewhere.

Agreed on both.

BR,
Jani.


Thread: