thread ordering based on references and/or in-reply-to

2011-11-04 Thread Dirk-Jan C. Binnema
On Wed 02 Nov 2011 04:37:05 PM EET, Austin Clements wrote: > On Mon, Oct 31, 2011 at 7:07 PM, Florian Friesdorf > wrote: > > > > Hi, > > > > I'm looking into taking the References header into account for thread > > ordering. So far only In-Reply-To is used. My C/C++ is rusty at best,

[PATCH v3 7/7] emacs: support limiting the number of results shown in search results

2011-11-04 Thread Jani Nikula
Add support for limiting the maximum number of results initially displayed in search results. When enabled, the search results will contain push buttons to double the number of results displayed or to show unlimited results. The approach is inspired by vc-print-log in Emacs vc.el. Signed-off-by:

[PATCH v3 6/7] test: add tests for notmuch search --first and --maxitems

2011-11-04 Thread Jani Nikula
Signed-off-by: Jani Nikula --- test/notmuch-test|1 + test/search-limiting | 71 ++ 2 files changed, 72 insertions(+), 0 deletions(-) create mode 100755 test/search-limiting diff --git a/test/notmuch-test b/test/notmuch-test index

[PATCH v3 5/7] test: add tests for notmuch count

2011-11-04 Thread Jani Nikula
Signed-off-by: Jani Nikula --- test/count| 40 test/notmuch-test |1 + 2 files changed, 41 insertions(+), 0 deletions(-) create mode 100755 test/count diff --git a/test/count b/test/count new file mode 100755 index 000..300b171 ---

[PATCH v3 4/7] cli: add support for --output parameter in notmuch count

2011-11-04 Thread Jani Nikula
Add support for --output=messages (which remains the default) and --output=threads to notmuch count. Signed-off-by: Jani Nikula --- notmuch-count.c | 18 -- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/notmuch-count.c b/notmuch-count.c index a35be40..09b413e

[PATCH v3 3/7] cli: drop unused code from notmuch count

2011-11-04 Thread Jani Nikula
Remove unused code within #if 0 blocks from notmuch count. Signed-off-by: Jani Nikula --- notmuch-count.c | 32 1 files changed, 0 insertions(+), 32 deletions(-) diff --git a/notmuch-count.c b/notmuch-count.c index 0d700a9..a35be40 100644 ---

[PATCH v3 2/7] cli: add options --first and --maxitems to notmuch search

2011-11-04 Thread Jani Nikula
Add options --first=[-]N and --maxitems=M to notmuch search to determine the first result and maximum number of results to display. Option --maxitems=M limits the maximum number of results to display to M. Option --first=[-]N skips the first N results; with the leading '-' skip until the Nth

[PATCH v3 1/7] lib: add function to get the number of threads matching a search

2011-11-04 Thread Jani Nikula
Add function notmuch_query_count_threads() to get the number of threads matching a search. This is done by performing a search and figuring out the number of unique thread IDs in the matching messages, a significantly heavier operation than notmuch_query_count_messages(). Signed-off-by: Jani

[PATCH v3 0/7] lib/cli/emacs: limit number of messages in search results

2011-11-04 Thread Jani Nikula
Hi, here's the third version of my output limiting patches. Changes since v2 (id:"cover.1320093940.git.jani at nikula.org"): * lib: use NOTMUCH_SORT_UNSORTED for notmuch_query_count_threads() query * cli: maxitems=0 doesn't output anything (previously it was unlimited) * cli: add

[RFC PATCH v2 0/3] lib/cli/emacs: limit number of messages in search results

2011-11-04 Thread Austin Clements
On Mon, Oct 31, 2011 at 6:07 PM, Jani Nikula wrote: > On Mon, 31 Oct 2011 14:44:29 -0700, Jameson Graef Rollins finestructure.net> wrote: >> In order to push forward with this, though, I think we really need to >> have a complete unit test for this new functionality. ?We usually like >> to see

decryption error for signed+encrypted messages

2011-11-04 Thread Jameson Graef Rollins
nts/20111104/d37f64c7/attachment.pgp>

decryption error for signed+encrypted messages

2011-11-04 Thread Jameson Graef Rollins
I just wanted to note on-list that I've run into what I think is a GMIME bug having to do with encrypted messages. I think this has been mentioned on IRC, but I wanted to document it here (so that we can tag it with our new bug tracker!). Decryption of messages that are both signed and encrypted

Re: [RFC PATCH v2 0/3] lib/cli/emacs: limit number of messages in search results

2011-11-04 Thread Austin Clements
On Mon, Oct 31, 2011 at 6:07 PM, Jani Nikula j...@nikula.org wrote: On Mon, 31 Oct 2011 14:44:29 -0700, Jameson Graef Rollins jroll...@finestructure.net wrote: In order to push forward with this, though, I think we really need to have a complete unit test for this new functionality.  We

[PATCH v3 0/7] lib/cli/emacs: limit number of messages in search results

2011-11-04 Thread Jani Nikula
Hi, here's the third version of my output limiting patches. Changes since v2 (id:cover.1320093940.git.j...@nikula.org): * lib: use NOTMUCH_SORT_UNSORTED for notmuch_query_count_threads() query * cli: maxitems=0 doesn't output anything (previously it was unlimited) * cli: add --output=threads

[PATCH v3 1/7] lib: add function to get the number of threads matching a search

2011-11-04 Thread Jani Nikula
Add function notmuch_query_count_threads() to get the number of threads matching a search. This is done by performing a search and figuring out the number of unique thread IDs in the matching messages, a significantly heavier operation than notmuch_query_count_messages(). Signed-off-by: Jani

[PATCH v3 3/7] cli: drop unused code from notmuch count

2011-11-04 Thread Jani Nikula
Remove unused code within #if 0 blocks from notmuch count. Signed-off-by: Jani Nikula j...@nikula.org --- notmuch-count.c | 32 1 files changed, 0 insertions(+), 32 deletions(-) diff --git a/notmuch-count.c b/notmuch-count.c index 0d700a9..a35be40 100644 ---

[PATCH v3 2/7] cli: add options --first and --maxitems to notmuch search

2011-11-04 Thread Jani Nikula
Add options --first=[-]N and --maxitems=M to notmuch search to determine the first result and maximum number of results to display. Option --maxitems=M limits the maximum number of results to display to M. Option --first=[-]N skips the first N results; with the leading '-' skip until the Nth

[PATCH v3 4/7] cli: add support for --output parameter in notmuch count

2011-11-04 Thread Jani Nikula
Add support for --output=messages (which remains the default) and --output=threads to notmuch count. Signed-off-by: Jani Nikula j...@nikula.org --- notmuch-count.c | 18 -- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/notmuch-count.c b/notmuch-count.c index

[PATCH v3 5/7] test: add tests for notmuch count

2011-11-04 Thread Jani Nikula
Signed-off-by: Jani Nikula j...@nikula.org --- test/count| 40 test/notmuch-test |1 + 2 files changed, 41 insertions(+), 0 deletions(-) create mode 100755 test/count diff --git a/test/count b/test/count new file mode 100755 index

[PATCH v3 6/7] test: add tests for notmuch search --first and --maxitems

2011-11-04 Thread Jani Nikula
Signed-off-by: Jani Nikula j...@nikula.org --- test/notmuch-test|1 + test/search-limiting | 71 ++ 2 files changed, 72 insertions(+), 0 deletions(-) create mode 100755 test/search-limiting diff --git a/test/notmuch-test

[PATCH v3 7/7] emacs: support limiting the number of results shown in search results

2011-11-04 Thread Jani Nikula
Add support for limiting the maximum number of results initially displayed in search results. When enabled, the search results will contain push buttons to double the number of results displayed or to show unlimited results. The approach is inspired by vc-print-log in Emacs vc.el. Signed-off-by:

Re: Re: thread ordering based on references and/or in-reply-to

2011-11-04 Thread Dirk-Jan C . Binnema
On Wed 02 Nov 2011 04:37:05 PM EET, Austin Clements wrote: On Mon, Oct 31, 2011 at 7:07 PM, Florian Friesdorf f...@chaoflow.net wrote: Hi, I'm looking into taking the References header into account for thread ordering. So far only In-Reply-To is used. My C/C++ is rusty at best,

Re: [RFC PATCH v2 3/3] emacs: support limiting the number of results shown in search results

2011-11-04 Thread Austin Clements
Quoth Jani Nikula on Oct 31 at 11:18 pm: Add support for limiting the maximum number of results initially displayed in search results. When enabled, the search results will contain push buttons to double the number of results displayed or to show unlimited results. The approach is inspired

notmuch-deliver under contrib/

2011-11-04 Thread Ali Polatel
Hello, I have just moved the notmuch-deliver repository to main notmuch repository under contrib/notmuch-deliver/. David, please send your github pull requests as patches to the mailing list for discussion. I have a few comments on them before I can apply. Personal Note: Below is the script I

Re: [PATCH] emacs: Let the user choose where to compose new mails

2011-11-04 Thread Austin Clements
This seems like a good option to have, but your approach seems unnecessarily complicated. I'm always wary of defcustom's :set because it means you can't just setq the variable, which defeats the underlying beauty of the customize system.  You could eliminate the other two variables and compute