[PATCH v4 6/6] cli: search: Add --output=count

2014-10-27 Thread Michal Sojka
This output can be used with --output=recipients or --output=sender and in addition to the mailboxes, it prints how many times was each mailbox encountered during search. --- completion/notmuch-completion.bash | 2 +- completion/notmuch-completion.zsh | 2 +- doc/man1/notmuch-search.rst

[PATCH v4 0/6] notmuch search --output=sender/recipients

2014-10-27 Thread Michal Sojka
Hi all, this is v4 of the search --output=address series. It obsoletes v3 that starts at id:1413150093-8383-1-git-send-email-sojk...@fel.cvut.cz. It addresses most comments made by Mark Walters and others. In addition to v3, it also implements new --output=count (also suggested by Mark). This

[PATCH v4 4/6] cli: search: Add --output={sender,recipients}

2014-10-27 Thread Michal Sojka
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

[PATCH v4 1/6] cli: search: Refactor passing of command line options

2014-10-27 Thread Michal Sojka
Many functions that implement the search command need to access command line options. Instead of passing each option in a separate variable, put them in a structure and pass only this structure. This will become handy in the following patches. --- notmuch-search.c | 125

[PATCH v4 3/6] cli: search: Convert --output to keyword-flag argument

2014-10-27 Thread Michal Sojka
This converts notmuch search to use the recently introduced keyword-flag argument parser. At this point, it only makes the code slightly less readable but following patches that add new --output keywords will profit from this. --- notmuch-search.c | 35 ++- 1 file

[PATCH v4 2/6] cli: Add support for parsing keyword-flag arguments

2014-10-27 Thread Michal Sojka
From: Jani Nikula j...@nikula.org This allows having multiple --foo=bar --foo=baz options on the command line, with the corresponding values OR'd together. [Test added by Michal Sojka] --- command-line-arguments.c | 6 +- command-line-arguments.h | 1 +

[PATCH] gitignore: ignore sh.config and doc/config.dox

2014-10-27 Thread Jani Nikula
--- .gitignore | 1 + doc/.gitignore | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 1fb3a713cfe8..296030c76977 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .first-build-message Makefile.config +sh.config version.stamp TAGS tags diff --git

Re: [PATCH v4 1/2] VIM: Add better attachment support

2014-10-27 Thread Ian Main
Tomi Ollila wrote: On Fri, Oct 24 2014, Ian Main im...@stemwinder.org wrote: Change how the notmuch vim client supports attachments: - For each message part a 'Part number: filename' is added to the header. - You can then use 'e' to extract the attachment under the cursor or use

Re: Looking for the perfect mail client

2014-10-27 Thread Ian Main
Sepp Tannhuber wrote: Ian Main im...@stemwinder.org schrieb am 23:33 Freitag, 24.Oktober 2014: https://github.com/imain/notmuch-vim/blob/master/doc/notmuch.txt Aha, the documentation is in the doc directory. Makes sense. :-) I'm sorry, I have ignored it. Perhaps you could refer to

[PATCH v2] VIM: Better reply handling with multiple emails

2014-10-27 Thread Ian Main
This patch fixes reply handling when using multiple emails. This adds a config check for other_email and uses that information when formulating reply headers. It will strip out your own email addresses from the reply and set the From: to be an email of yours found in the original message. Note

[PATCH v3] VIM: Better reply handling with multiple emails

2014-10-27 Thread Ian Main
Fix reply handling when using multiple emails. This adds a config check for other_email and uses that information when formulating reply headers. It will strip out your own email addresses from the reply and set the From: to be an email of yours found in the original message. Ian --- Fix

Re: Looking for the perfect mail client

2014-10-27 Thread Ian Main
Sepp Tannhuber wrote: Ian Main im...@stemwinder.org schrieb am 23:33 Freitag, 24.Oktober 2014: https://github.com/imain/notmuch-vim/blob/master/doc/notmuch.txt Aha, the documentation is in the doc directory. Makes sense. :-) I'm sorry, I have ignored it. Perhaps you could refer to

[PATCH v4 4/6] cli: search: Add --output={sender,recipients}

2014-10-27 Thread Michal Sojka
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

[PATCH v4 0/6] notmuch search --output=sender/recipients

2014-10-27 Thread Michal Sojka
Hi all, this is v4 of the search --output=address series. It obsoletes v3 that starts at id:1413150093-8383-1-git-send-email-sojkam1 at fel.cvut.cz. It addresses most comments made by Mark Walters and others. In addition to v3, it also implements new --output=count (also suggested by Mark). This

[PATCH v4 5/6] cli: search: Add configurable way to filter out duplicate addresses

2014-10-27 Thread Michal Sojka
This adds an algorithm to filter out duplicate addresses from address outputs (sender, receivers). The algorithm can be configured with --filter-by command line option. The code here is an extended version of a patch from Jani Nikula. --- completion/notmuch-completion.bash | 6 ++-

[PATCH v4 6/6] cli: search: Add --output=count

2014-10-27 Thread Michal Sojka
This output can be used with --output=recipients or --output=sender and in addition to the mailboxes, it prints how many times was each mailbox encountered during search. --- completion/notmuch-completion.bash | 2 +- completion/notmuch-completion.zsh | 2 +- doc/man1/notmuch-search.rst

[PATCH v4 1/6] cli: search: Refactor passing of command line options

2014-10-27 Thread Michal Sojka
Many functions that implement the search command need to access command line options. Instead of passing each option in a separate variable, put them in a structure and pass only this structure. This will become handy in the following patches. --- notmuch-search.c | 125

[PATCH v4 2/6] cli: Add support for parsing keyword-flag arguments

2014-10-27 Thread Michal Sojka
From: Jani Nikula This allows having multiple --foo=bar --foo=baz options on the command line, with the corresponding values OR'd together. [Test added by Michal Sojka] --- command-line-arguments.c | 6 +- command-line-arguments.h | 1 +

[PATCH v4 3/6] cli: search: Convert --output to keyword-flag argument

2014-10-27 Thread Michal Sojka
This converts "notmuch search" to use the recently introduced keyword-flag argument parser. At this point, it only makes the code slightly less readable but following patches that add new --output keywords will profit from this. --- notmuch-search.c | 35 ++- 1

[PATCH] gitignore: ignore sh.config and doc/config.dox

2014-10-27 Thread Jani Nikula
--- .gitignore | 1 + doc/.gitignore | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 1fb3a713cfe8..296030c76977 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .first-build-message Makefile.config +sh.config version.stamp TAGS tags diff --git

[PATCH v4 1/2] VIM: Add better attachment support

2014-10-27 Thread Ian Main
Tomi Ollila wrote: > On Fri, Oct 24 2014, Ian Main wrote: > > > Change how the notmuch vim client supports attachments: > > > > - For each message part a 'Part : ' is added to the > > header. > > - You can then use 'e' to extract the attachment under the cursor or > > use it elsewhere to

Looking for the perfect mail client

2014-10-27 Thread Ian Main
Sepp Tannhuber wrote: > Ian Main schrieb am 23:33 Freitag, 24.Oktober 2014: > > > https://github.com/imain/notmuch-vim/blob/master/doc/notmuch.txt > Aha, the documentation is in the doc directory. Makes sense. :-) > I'm sorry, I have ignored it. Perhaps you could refer to > ?notmuch.txt? in the

[PATCH v2] VIM: Better reply handling with multiple emails

2014-10-27 Thread Ian Main
This patch fixes reply handling when using multiple emails. This adds a config check for other_email and uses that information when formulating reply headers. It will strip out your own email addresses from the reply and set the From: to be an email of yours found in the original message. Note

[PATCH v3] VIM: Better reply handling with multiple emails

2014-10-27 Thread Ian Main
Fix reply handling when using multiple emails. This adds a config check for other_email and uses that information when formulating reply headers. It will strip out your own email addresses from the reply and set the From: to be an email of yours found in the original message. Ian --- Fix

Looking for the perfect mail client

2014-10-27 Thread Ian Main
Sepp Tannhuber wrote: > Ian Main schrieb am 23:33 Freitag, 24.Oktober 2014: > > > https://github.com/imain/notmuch-vim/blob/master/doc/notmuch.txt > Aha, the documentation is in the doc directory. Makes sense. :-) > I'm sorry, I have ignored it. Perhaps you could refer to > ?notmuch.txt? in the