Re: nomuch_addresses.py

2012-02-22 Thread Jani Nikula
On Tue, 21 Feb 2012 11:33:38 -0500, Jesse Rosenthal jrosent...@jhu.edu wrote: On Tue, 21 Feb 2012 14:53:06 +0100, Daniel Schoepe dan...@schoepe.org wrote: On Tue, 21 Feb 2012 09:15:09 -, Justus Winter 4win...@informatik.uni-hamburg.de wrote: The reason I mentioned nottoomuch-addresses

Re: notmuch as a shared object aka library knigge

2012-02-22 Thread Justus Winter
Quoting Austin Clements (2012-02-21 16:53:12) Quoth Justus Winter on Feb 21 at 1:29 am: Hi fellow notmuchrs, while going through the python bindings I recently came across the following note in the documentation for the Database.get_directory function [0]: ~~~ snip ~~~ Warning This

Re: [PATCH v5.2 7/7] emacs: Use the new JSON reply format and message-cite-original

2012-02-22 Thread Austin Clements
Quoth Adam Wolfe Gordon on Feb 21 at 9:49 am: On Mon, Feb 20, 2012 at 22:59, Austin Clements amdra...@mit.edu wrote: I've been thinking about this more.  message-mode's default citation line is really unfortunate and quite possibly insane (writes isn't even the right tense and what's up

Searching through different charsets

2012-02-22 Thread Serge Z
Hello! I've got the following problem: fetched emails can be in different encodings. And searching a term typed in one encoding (system default) does not match the same term in another encoding. The solution, as I see, can be in preprocessing each incoming email to normalize it and its encoding

Re: [PATCH] emacs: make `notmuch-show-open-or-close-all' toggle visibility

2012-02-22 Thread Pieter Praet
On Mon, 13 Feb 2012 14:51:17 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: Hi Pieter. On Wed, 25 Jan 2012 06:25:39 +0100, Pieter Praet pie...@praet.org wrote: * emacs/notmuch-show.el (notmuch-show-open-or-close-all): Rename to `notmuch-show-toggle-all-messages', and make it

[PATCH v2 2/7] test: emacs: new tests notmuch-show: {, un}collapse all messages in thread

2012-02-22 Thread Pieter Praet
* test/emacs: - New subtest notmuch-show: collapse all messages in thread: `notmuch-show-open-or-close-all' with prefix arg (C-u M-RET) collapses all messages in thread. - New subtest notmuch-show: uncollapse all messages in thread: `notmuch-show-open-or-close-all' without prefix

[PATCH v2 1/7] test: emacs: new tests notmuch-show: {show, hide} message headers

2012-02-22 Thread Pieter Praet
* test/emacs: - New subtest notmuch-show: show message headers: Setting `notmuch-message-headers-visible' to t causes all headers defined in `notmuch-message-headers' to be shown. - New subtest notmuch-show: hide message headers: Setting `notmuch-message-headers-visible' to nil

[PATCH v2 4/7] emacs: rename `notmuch-show-toggle-message' to `notmuch-show-toggle-visibility-message'

2012-02-22 Thread Pieter Praet
* emacs/notmuch-show.el (notmuch-show-toggle-message): Rename to `notmuch-show-toggle-visibility-message'. (notmuch-show-mode-map): Update RET binding wrt renamed `notmuch-show-toggle-message'. * test/emacs: Update subtests wrt renamed `notmuch-show-toggle-message': - Hiding

[PATCH v2 7/7] emacs: `notmuch-show-toggle-visibility-messages' with prefix arg filters by tag

2012-02-22 Thread Pieter Praet
* emacs/notmuch-show.el (notmuch-show-toggle-visibility-messages): When provided with a prefix arg, prompt the user for a tag. Show all messages that have it and hide those that don't. --- emacs/notmuch-show.el | 13 ++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff

[PATCH v2 3/7] emacs: rename `notmuch-show-toggle-headers' to `notmuch-show-toggle-visibility-headers'

2012-02-22 Thread Pieter Praet
* emacs/notmuch-show.el (notmuch-show-toggle-headers): Rename to `notmuch-show-toggle-visibility-headers'. (notmuch-show-mode-map): Update h binding wrt renamed `notmuch-show-toggle-headers'. (notmuch-message-headers): Update docstring wrt renamed

Re: [PATCH v2 2/4] test: emacs: new test notmuch-search: replying to a thread (sending)

2012-02-22 Thread Pieter Praet
On Sun, 19 Feb 2012 23:04:38 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: On Sun, 19 Feb 2012 21:38:26 +0100, Pieter Praet pie...@praet.org wrote: As pointed out in the previous commit, the test for replying from within Emacs didn't actually submit the reply. This one does. ---

Re: [PATCH v2 2/4] test: emacs: new test notmuch-search: replying to a thread (sending)

2012-02-22 Thread Pieter Praet
On Mon, 20 Feb 2012 16:44:32 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: On Sun, 19 Feb 2012 21:38:26 +0100, Pieter Praet pie...@praet.org wrote: As pointed out in the previous commit, the test for replying from within Emacs didn't actually submit the reply. This one does.

Re: [PATCH v2 4/4] test: emacs: new test notmuch-search: change tags of all matching messages

2012-02-22 Thread Pieter Praet
On Sun, 19 Feb 2012 23:08:30 +0200, Tomi Ollila tomi.oll...@iki.fi wrote: On Sun, 19 Feb 2012 21:38:28 +0100, Pieter Praet pie...@praet.org wrote: `notmuch-search-tag-all' (bound to *) adds and removes tags to/from all messages which match the query used to populate the current search

[PATCH v3] test: emacs: new test notmuch-search: change tags of all matching messages

2012-02-22 Thread Pieter Praet
`notmuch-search-tag-all' (bound to *) adds and removes tags to/from all messages which match the query used to populate the current search buffer. --- test/emacs | 38 ++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/test/emacs b/test/emacs

[PATCH 2/2] NEWS: add entry for the improved unicode handling in the python bindings

2012-02-22 Thread Justus Winter
Signed-off-by: Justus Winter 4win...@informatik.uni-hamburg.de --- NEWS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index 403a310..af5e9ea 100644 --- a/NEWS +++ b/NEWS @@ -78,6 +78,12 @@ Python 3.2 compatibility The python bindings are now

Re: [PATCH] emacs: Mention race condition safety in user visible documentation

2012-02-22 Thread Pieter Praet
On Tue, 21 Feb 2012 10:15:08 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: [...] OK, at least one supporter here :) The updated patch follows: -- 8 -- Subject: [PATCH] emacs: Clarify description of thread manipulating functions It is not clear whether the term thread refers to the thread

[PATCH] emacs: correct `notmuch-search-mode's docstring wrt `notmuch-search-tag-all'

2012-02-22 Thread Pieter Praet
* emacs/notmuch.el (notmuch-search-mode): `notmuch-search-tag-all' currently uses the current query string instead of `notmuch-search-find-thread-id-region-search', which might cause a race condition. --- emacs/notmuch.el |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff

[PATCH] emacs: initialize ido mode in notmuch-mua.el

2012-02-22 Thread Mark Walters
ido-completing-read is used in notmuch-mua.el without any initialization. This should work but a bug (emacs bug #3247) in some emacs 23 versions (including 23.2.1 from Debian stable) causes emacs to get stuck in the mini-buffer. This tests to see if ido-mode has been initialized and if not calls

nomuch_addresses.py

2012-02-22 Thread Jani Nikula
On Tue, 21 Feb 2012 11:33:38 -0500, Jesse Rosenthal wrote: > On Tue, 21 Feb 2012 14:53:06 +0100, Daniel Schoepe > wrote: > > On Tue, 21 Feb 2012 09:15:09 -, Justus Winter <4winter at > > informatik.uni-hamburg.de> wrote: > > The reason I mentioned nottoomuch-addresses at all, is that

notmuch as a shared object aka library knigge

2012-02-22 Thread Justus Winter
Quoting Austin Clements (2012-02-21 16:53:12) >Quoth Justus Winter on Feb 21 at 1:29 am: >> Hi fellow notmuchrs, >> >> while going through the python bindings I recently came across the >> following note in the documentation for the Database.get_directory >> function [0]: >> >> ~~~ snip ~~~ >>

[PATCH v5.2 7/7] emacs: Use the new JSON reply format and message-cite-original

2012-02-22 Thread Austin Clements
Quoth Adam Wolfe Gordon on Feb 21 at 9:49 am: > On Mon, Feb 20, 2012 at 22:59, Austin Clements wrote: > > I've been thinking about this more. ?message-mode's default citation > > line is really unfortunate and quite possibly insane ("writes" isn't > > even the right tense and what's up with that

Searching through different charsets

2012-02-22 Thread Serge Z
Hello! I've got the following problem: fetched emails can be in different encodings. And searching a term typed in one encoding (system default) does not match the same term in another encoding. The solution, as I see, can be in preprocessing each incoming email to "normalize" it and its

[PATCH] emacs: make `notmuch-show-open-or-close-all' toggle visibility

2012-02-22 Thread Pieter Praet
On Mon, 13 Feb 2012 14:51:17 +0400, Dmitry Kurochkin wrote: > Hi Pieter. > > On Wed, 25 Jan 2012 06:25:39 +0100, Pieter Praet wrote: > > * emacs/notmuch-show.el (notmuch-show-open-or-close-all): > > Rename to `notmuch-show-toggle-all-messages', and make it toggle > > visibility of all

[PATCH v2 2/7] test: emacs: new tests "notmuch-show: {, un}collapse all messages in thread"

2012-02-22 Thread Pieter Praet
* test/emacs: - New subtest "notmuch-show: collapse all messages in thread": `notmuch-show-open-or-close-all' with prefix arg ("C-u M-RET") collapses all messages in thread. - New subtest "notmuch-show: uncollapse all messages in thread": `notmuch-show-open-or-close-all' without

[PATCH v2 1/7] test: emacs: new tests "notmuch-show: {show, hide} message headers"

2012-02-22 Thread Pieter Praet
* test/emacs: - New subtest "notmuch-show: show message headers": Setting `notmuch-message-headers-visible' to t causes all headers defined in `notmuch-message-headers' to be shown. - New subtest "notmuch-show: hide message headers": Setting `notmuch-message-headers-visible' to

[PATCH v2 4/7] emacs: rename `notmuch-show-toggle-message' to `notmuch-show-toggle-visibility-message'

2012-02-22 Thread Pieter Praet
* emacs/notmuch-show.el (notmuch-show-toggle-message): Rename to `notmuch-show-toggle-visibility-message'. (notmuch-show-mode-map): Update "RET" binding wrt renamed `notmuch-show-toggle-message'. * test/emacs: Update subtests wrt renamed `notmuch-show-toggle-message': - "Hiding

[PATCH v2 5/7] emacs: rename `notmuch-show-open-or-close-all' to `notmuch-show-toggle-visibility-messages'

2012-02-22 Thread Pieter Praet
* emacs/notmuch-show.el (notmuch-show-open-or-close-all): Rename to `notmuch-show-toggle-visibility-messages'. (notmuch-show-mode-map): Update "M-RET" binding wrt renamed `notmuch-show-open-or-close-all'. * test/emacs: Update subtests wrt renamed `notmuch-show-open-or-close-all':

[PATCH v2 3/7] emacs: rename `notmuch-show-toggle-headers' to `notmuch-show-toggle-visibility-headers'

2012-02-22 Thread Pieter Praet
* emacs/notmuch-show.el (notmuch-show-toggle-headers): Rename to `notmuch-show-toggle-visibility-headers'. (notmuch-show-mode-map): Update "h" binding wrt renamed `notmuch-show-toggle-headers'. (notmuch-message-headers): Update docstring wrt renamed

[PATCH v2 6/7] emacs: make `notmuch-show-toggle-visibility-messages' live up to its new name

2012-02-22 Thread Pieter Praet
* emacs/notmuch-show.el (notmuch-show-toggle-visibility-messages): Toggle visibility of all messages in current thread based on visibility of the current message, instead of setting visibility based on whether or not a prefix arg was supplied. Also move current buffer line to the 2nd

[PATCH v2 7/7] emacs: `notmuch-show-toggle-visibility-messages' with prefix arg filters by tag

2012-02-22 Thread Pieter Praet
* emacs/notmuch-show.el (notmuch-show-toggle-visibility-messages): When provided with a prefix arg, prompt the user for a tag. Show all messages that have it and hide those that don't. --- emacs/notmuch-show.el | 13 ++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff

[PATCH v2 2/4] test: emacs: new test "notmuch-search: replying to a thread (sending)"

2012-02-22 Thread Pieter Praet
On Sun, 19 Feb 2012 23:04:38 +0200, Tomi Ollila wrote: > On Sun, 19 Feb 2012 21:38:26 +0100, Pieter Praet wrote: > > As pointed out in the previous commit, the test for replying from > > within Emacs didn't actually submit the reply. This one does. > > --- > > test/emacs | 41

[PATCH v2 2/4] test: emacs: new test "notmuch-search: replying to a thread (sending)"

2012-02-22 Thread Pieter Praet
On Mon, 20 Feb 2012 16:44:32 +0400, Dmitry Kurochkin wrote: > On Sun, 19 Feb 2012 21:38:26 +0100, Pieter Praet wrote: > > As pointed out in the previous commit, the test for replying from > > within Emacs didn't actually submit the reply. This one does. > > --- > > test/emacs | 41

[PATCH v2 3/4] test: emacs: new test "notmuch-search: when reply is sent, parent message should be tagged 'replied'"

2012-02-22 Thread Pieter Praet
On Mon, 20 Feb 2012 16:20:28 +0400, Dmitry Kurochkin wrote: > On Sun, 19 Feb 2012 21:38:27 +0100, Pieter Praet wrote: > > When a message is replied to, it should be tagged `replied'. > > --- > > test/emacs |5 + > > 1 files changed, 5 insertions(+), 0 deletions(-) > > > > diff --git

[PATCH v2 4/4] test: emacs: new test "notmuch-search: change tags of all matching messages"

2012-02-22 Thread Pieter Praet
On Sun, 19 Feb 2012 23:08:30 +0200, Tomi Ollila wrote: > On Sun, 19 Feb 2012 21:38:28 +0100, Pieter Praet wrote: > > `notmuch-search-tag-all' (bound to "*") adds and removes tags > > to/from all messages which match the query used to populate the > > current search buffer. > > --- > >

[PATCH v2 4/4] test: emacs: new test "notmuch-search: change tags of all matching messages"

2012-02-22 Thread Pieter Praet
On Mon, 20 Feb 2012 16:25:05 +0400, Dmitry Kurochkin wrote: > On Sun, 19 Feb 2012 21:38:28 +0100, Pieter Praet wrote: > > `notmuch-search-tag-all' (bound to "*") adds and removes tags > > to/from all messages which match the query used to populate the > > current search buffer. > > LGTM. But

[PATCH v3] test: emacs: new test "notmuch-search: change tags of all matching messages"

2012-02-22 Thread Pieter Praet
`notmuch-search-tag-all' (bound to "*") adds and removes tags to/from all messages which match the query used to populate the current search buffer. --- test/emacs | 38 ++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/test/emacs

[PATCH 1/2] NEWS: add entry for python 3.2 compatibility

2012-02-22 Thread Justus Winter
Signed-off-by: Justus Winter <4winter at informatik.uni-hamburg.de> --- NEWS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index e9abb86..403a310 100644 --- a/NEWS +++ b/NEWS @@ -71,6 +71,13 @@ New functions notmuch_query_add_tag_exclude supports

[PATCH 2/2] NEWS: add entry for the improved unicode handling in the python bindings

2012-02-22 Thread Justus Winter
Signed-off-by: Justus Winter <4winter at informatik.uni-hamburg.de> --- NEWS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index 403a310..af5e9ea 100644 --- a/NEWS +++ b/NEWS @@ -78,6 +78,12 @@ Python 3.2 compatibility The python bindings are now

[PATCH v3 0/3] Fix refreshing with state and make it the default

2012-02-22 Thread Pieter Praet
On Tue, 21 Feb 2012 10:42:30 -0500, Austin Clements wrote: > Third time's the charm. This fixes show refresh to not mark anything > read when keeping state while refreshing and makes it the default. > LGTM. Peace -- Pieter

ANNOUNCE: nottoomuch-addresses.sh 2.1

2012-02-22 Thread Tomi Ollila
nottoomuch-addresses.sh -- email address substring matcher -- completion helper version 2.1 is available. *** ??? This is a bugfix release !!! *** (No wonder as this is fixing "point zero" release ;/) Changes: * Fixed a bug where decoding matching but unknown or malformed =?...?=-

[PATCH] emacs: Mention race condition safety in user visible documentation

2012-02-22 Thread Pieter Praet
On Tue, 21 Feb 2012 10:15:08 +0100, Michal Sojka wrote: > [...] > OK, at least one supporter here :) The updated patch follows: > > -- >8 -- > Subject: [PATCH] emacs: Clarify description of thread manipulating functions > > It is not clear whether the term "thread" refers to the thread in the >

[PATCH] emacs: correct `notmuch-search-mode's docstring wrt `notmuch-search-tag-all'

2012-02-22 Thread Pieter Praet
* emacs/notmuch.el (notmuch-search-mode): `notmuch-search-tag-all' currently uses the current query string instead of `notmuch-search-find-thread-id-region-search', which might cause a race condition. --- emacs/notmuch.el |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff