]> rtime.felk.cvut.cz Git - notmuch.git/commit
cli: search: Add --output={sender,recipients}
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 27 Oct 2014 14:25:32 +0000 (15:25 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 31 Oct 2014 21:19:27 +0000 (22:19 +0100)
commitb07d77d9c8692c51b28741b3a584475dd96dfd9f
tree8418591ad45aa67a55d3cfb5885e4f979b594ffa
parent19a1c53cc635126a3fa4fd737ee0fbccd795f368
cli: search: Add --output={sender,recipients}

The new outputs allow printing senders, recipients or both of matching
messages. To print both, the user can use --output=sender and
--output=recipients simultaneously.

Currently, the same address can appear multiple times in the output.
The next commit will change this. For this reason, tests are
introduced there.

We use mailbox_t rather than InternetAddressMailbox because we will
need to extend it in a following commit.

This code is based on a patch from Jani Nikula.
completion/notmuch-completion.bash
completion/notmuch-completion.zsh
doc/man1/notmuch-search.rst
notmuch-search.c