]> 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>
Mon, 27 Oct 2014 14:29:58 +0000 (15:29 +0100)
commit75fa3f4fe4c673c7cfc2eb9eb50bbfbcfd67665c
tree4c019cd507014140712a138053f4a201b6c1ada1
parentfbaba2d81d07e84c313782dce419cbd62fb1d7c4
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 patch will change this. For this reason, the test are introduced in
the next patch as well.

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

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