[PATCH 2/3] cli: show allow the caller to specify the headers output.

Jameson Graef Rollins jrollins at finestructure.net
Fri Jul 13 12:33:49 PDT 2012


On Sat, Jul 07 2012, Mark Walters <markwalters1009 at gmail.com> wrote:
> +typedef enum {
> +    NOTMUCH_SHOW_OUTPUT_HDR_DATE = 0x1,
> +    NOTMUCH_SHOW_OUTPUT_HDR_SUBJECT = 0x2,
> +    NOTMUCH_SHOW_OUTPUT_HDR_FROM = 0x4,
> +    NOTMUCH_SHOW_OUTPUT_HDR_TO = 0x8,
> +    NOTMUCH_SHOW_OUTPUT_HDR_CC = 0x10,
> +    NOTMUCH_SHOW_OUTPUT_HDR_REPLY_TO = 0x20,
> +    NOTMUCH_SHOW_OUTPUT_HDR_IN_REPLY_TO = 0x40,
> +    NOTMUCH_SHOW_OUTPUT_HDR_REFERENCES = 0x80,
> +    NOTMUCH_SHOW_OUTPUT_DEFAULT =
> +	    NOTMUCH_SHOW_OUTPUT_HDR_SUBJECT |
> +	    NOTMUCH_SHOW_OUTPUT_HDR_FROM |
> +	    NOTMUCH_SHOW_OUTPUT_HDR_TO |
> +	    NOTMUCH_SHOW_OUTPUT_HDR_CC |
> +	    NOTMUCH_SHOW_OUTPUT_HDR_DATE
> +} notmuch_show_output_t;

Is there a reason we need to limit this to some pre-defined subset of
headers?  Wouldn't it be nice if you could just specify arbitrary
headers?

jamie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120713/2a8b27f3/attachment.pgp>


More information about the notmuch mailing list