[PATCH] cli: add --output=address-{from,to,all} to notmuch search

2014-09-06 Thread Jani Nikula
address-from prints reply-to or from, address-to prints to, cc, and bcc, and address-all prints all of them. --- Mark, David - I wrote most of this almost two years ago, but wasn't really happy with it. There's address deduplication, but for large result sets that might use lots of memory.

[PATCH 1/3] cli: add support for parsing multiple keyword arguments

2014-09-06 Thread Jani Nikula
This allows having multiple --foo=bar --foo=baz options on the command line, with the corresponding values OR'd together. --- command-line-arguments.c | 6 +- command-line-arguments.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/command-line-arguments.c

[PATCH 2/3] cli: add --output=address-{from, to, all} to notmuch search

2014-09-06 Thread Jani Nikula
address-from prints reply-to or from, address-to prints to, cc, and bcc, and address-all prints all of them. --- notmuch-search.c | 113 ++- 1 file changed, 104 insertions(+), 9 deletions(-) diff --git a/notmuch-search.c b/notmuch-search.c

[PATCH 3/3] cli: deduplicate addresses for --output=address-*

2014-09-06 Thread Jani Nikula
--- notmuch-search.c | 32 ++-- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/notmuch-search.c b/notmuch-search.c index c84ecc31262c..c3ca3246bceb 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -218,7 +218,8 @@ do_search_threads (sprinter_t

Re: [PATCH 2/3] cli: add --output=address-{from, to, all} to notmuch search

2014-09-06 Thread Mark Walters
On Sat, 06 Sep 2014, Jani Nikula j...@nikula.org wrote: address-from prints reply-to or from, address-to prints to, cc, and bcc, and address-all prints all of them. Hi I like these: thanks a lot for doing this. Just one quick comment before I do an actual review: --- notmuch-search.c |

[Patch v2 1/2] emacs: show: document the mark unread defcustom function

2014-09-06 Thread Mark Walters
--- emacs/notmuch-show.el |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 7549fbb..5695d95 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -224,7 +224,13 @@ For example, if you wanted to remove an

[Patch v2 0/2] emacs: show: mark messages read if seen in buffer

2014-09-06 Thread Mark Walters
This is v2 of this patch: v1 is at id:140559-7666-1-git-send-email-markwalters1...@gmail.com The first patch just documents what is required for a mark-read function. The second patch adds my preferred logic of marking a message seen if `enough' of it has been visible in the buffer. There

[PATCH] cli: add --output=address-{from,to,all} to notmuch search

2014-09-06 Thread Jani Nikula
address-from prints reply-to or from, address-to prints to, cc, and bcc, and address-all prints all of them. --- notmuch-search.c | 109 ++- 1 file changed, 100 insertions(+), 9 deletions(-) diff --git a/notmuch-search.c b/notmuch-search.c

Re: [PATCH] cli: add --output=address-{from, to, all} to notmuch search

2014-09-06 Thread Jani Nikula
On Sat, 06 Sep 2014, Jani Nikula j...@nikula.org wrote: address-from prints reply-to or from, address-to prints to, cc, and bcc, and address-all prints all of them. *sigh* this was supposed to be: --- cli: add --output=sender and --output=recipients to notmuch search sender prints from,

Re: [PATCH] cli: add --output=address-{from, to, all} to notmuch search

2014-09-06 Thread Mark Walters
On Sat, 06 Sep 2014, Jani Nikula j...@nikula.org wrote: address-from prints reply-to or from, address-to prints to, cc, and bcc, and address-all prints all of them. This looks good to me. Obviously needs the new commit message. I think we should think about the deduplication possibilities

sending email using different server for different 'From:' field

2014-09-06 Thread David Belohrad
Dear Both, thanks alot, i'll try to see those options (when i find a bit of time :) nice evening (in europe at least) .d. Mark Walters writes: > Hi > > On Wed, 03 Sep 2014, David Belohrad wrote: >> oukej. this seems to be exactly what I'm looking for. Is there a way how >> to 'cycle' in

[PATCH v1 0/3] Address completion entirely in elisp.

2014-09-06 Thread Trevor Jim
was scrubbed... URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140906/8092d995/attachment.html>

[PATCH] cli: add --output=address-{from,to,all} to notmuch search

2014-09-06 Thread Jani Nikula
address-from prints reply-to or from, address-to prints to, cc, and bcc, and address-all prints all of them. --- Mark, David - I wrote most of this almost two years ago, but wasn't really happy with it. There's address deduplication, but for large result sets that might use lots of memory.

[PATCH 2/3] cli: add --output=address-{from, to, all} to notmuch search

2014-09-06 Thread Jani Nikula
address-from prints reply-to or from, address-to prints to, cc, and bcc, and address-all prints all of them. --- notmuch-search.c | 113 ++- 1 file changed, 104 insertions(+), 9 deletions(-) diff --git a/notmuch-search.c b/notmuch-search.c

[PATCH 1/3] cli: add support for parsing multiple keyword arguments

2014-09-06 Thread Jani Nikula
This allows having multiple --foo=bar --foo=baz options on the command line, with the corresponding values OR'd together. --- command-line-arguments.c | 6 +- command-line-arguments.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/command-line-arguments.c

[PATCH 3/3] cli: deduplicate addresses for --output=address-*

2014-09-06 Thread Jani Nikula
--- notmuch-search.c | 32 ++-- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/notmuch-search.c b/notmuch-search.c index c84ecc31262c..c3ca3246bceb 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -218,7 +218,8 @@ do_search_threads (sprinter_t

[PATCH 2/3] cli: add --output=address-{from, to, all} to notmuch search

2014-09-06 Thread Mark Walters
On Sat, 06 Sep 2014, Jani Nikula wrote: > address-from prints reply-to or from, address-to prints to, cc, and > bcc, and address-all prints all of them. Hi I like these: thanks a lot for doing this. Just one quick comment before I do an actual review: > --- > notmuch-search.c | 113 >

[Patch v2 0/2] emacs: show: mark messages read if seen in buffer

2014-09-06 Thread Mark Walters
This is v2 of this patch: v1 is at id:140559-7666-1-git-send-email-markwalters1009 at gmail.com The first patch just documents what is required for a mark-read function. The second patch adds my preferred logic of marking a message seen if `enough' of it has been visible in the buffer.

[Patch v2 1/2] emacs: show: document the mark unread defcustom function

2014-09-06 Thread Mark Walters
--- emacs/notmuch-show.el |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 7549fbb..5695d95 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -224,7 +224,13 @@ For example, if you wanted to remove an

[Patch v2 2/2] emacs: show: mark messages unread if seen in buffer

2014-09-06 Thread Mark Walters
This adds a function that marks messages unread if they are "seen" that is a user configurable amount of them has been visible in the buffer. --- emacs/notmuch-show.el | 74 - 1 file changed, 73 insertions(+), 1 deletion(-) diff --git

[PATCH] cli: add --output=address-{from,to,all} to notmuch search

2014-09-06 Thread Jani Nikula
address-from prints reply-to or from, address-to prints to, cc, and bcc, and address-all prints all of them. --- notmuch-search.c | 109 ++- 1 file changed, 100 insertions(+), 9 deletions(-) diff --git a/notmuch-search.c b/notmuch-search.c

[PATCH] cli: add --output=address-{from, to, all} to notmuch search

2014-09-06 Thread Mark Walters
On Sat, 06 Sep 2014, Jani Nikula wrote: > address-from prints reply-to or from, address-to prints to, cc, and > bcc, and address-all prints all of them. This looks good to me. Obviously needs the new commit message. I think we should think about the deduplication possibilities but that can