Bug?: notmuch-search-show-thread shows several threads; only one containing matching messages

2014-01-26 Thread Gregor Zattler
Hi David, * David Bremner [24. Jan. 2014]: > Mark Walters writes: >> I have looked at this and I think this is not notmuch's fault: I think >> it is a mua doing strange things: >> >> One of the mails has an in-reply-to header which looks like >> >> In-reply-to: Message from Carsten Dominik of

[PATCH] test: add basic tests for notmuch new --quiet option

2014-01-26 Thread Tomi Ollila
On Sun, Jan 26 2014, Jani Nikula wrote: > This does not cover all the possible paths notmuch new could output > stuff, but it's better than nothing. > --- LGTM. Tomi > test/T050-new.sh | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/test/T050-new.sh

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

2014-01-26 Thread Tomi Ollila
On Sun, Jan 26 2014, Mark Walters wrote: > I don't have anything older than 23.4 anymore so I am afraid I can't > test. My recollection is that I upgraded to 23.4 the problem went away > so I forgot about it. Fine, I prepare and test the patch then ;/ Tomi > (I couldn't see easily what

[PATCH] emacs: add a function to heuristically test if the CLI is configured OK.

2014-01-26 Thread Tomi Ollila
On Sun, Jan 26 2014, David Bremner wrote: > We cache the result so that we can call the function many places > without worrying about the cost. > --- > thanks to Tomi for catching the typos (uncommitted changes on my end). Series LGTM. Tomi > > emacs/notmuch-lib.el | 11 +++ > 1 file

[PATCH] test: add basic tests for notmuch new --quiet option

2014-01-26 Thread Jani Nikula
This does not cover all the possible paths notmuch new could output stuff, but it's better than nothing. --- test/T050-new.sh | 15 +++ 1 file changed, 15 insertions(+) diff --git a/test/T050-new.sh b/test/T050-new.sh index f27423d..b7668ff 100755 --- a/test/T050-new.sh +++

[PATCH 1/1] build: write VERSION file containing $(VERSION) string

2014-01-26 Thread Mark Walters
Hi I experimented with this and it didn't always seem to rebuild VERSION when it should. Looking at the file .git/HEAD that just seems to be the branch name not the commit id (unless in detached HEAD state) This link

Bug?: notmuch-search-show-thread shows several threads; only one containing matching messages

2014-01-26 Thread David Bremner
Gregor Zattler writes: > Today I produced another mbox with the very same command but with > a now larger email corpus freshly indexed with a fresh notmuch. > The mbox contains (according to mutt) 507 messages in 34 threads. > One of them is the thread I searched for. > > I grepped for the 7

[PATCH] emacs: add a function to heuristically test if the CLI is configured OK.

2014-01-26 Thread Mark Walters
This version LGTM +1. (Just for the record there was some discussion on irc about switching to the *notmuch errors* buffer but that is more complex and fragile so let's go with this simple and effective solution.) Best wishes Mark On Sun, 26 Jan 2014, David Bremner wrote: > We cache the

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

2014-01-26 Thread Mark Walters
I don't have anything older than 23.4 anymore so I am afraid I can't test. My recollection is that I upgraded to 23.4 the problem went away so I forgot about it. (I couldn't see easily what version of emacs debian stable has now as seemed to be called 45.) Best wishes Mark On Sat, 25 Jan

[PATCH] test: add basic tests for notmuch new --quiet option

2014-01-26 Thread Mark Walters
LGTM +1. Best wishes Mark On Sun, 26 Jan 2014, Jani Nikula wrote: > This does not cover all the possible paths notmuch new could output > stuff, but it's better than nothing. > --- > test/T050-new.sh | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/test/T050-new.sh

[PATCH] emacs: add a function to heuristically test if the CLI is configured OK.

2014-01-26 Thread David Bremner
We cache the result so that we can call the function many places without worrying about the cost. --- thanks to Tomi for catching the typos (uncommitted changes on my end). emacs/notmuch-lib.el | 11 +++ 1 file changed, 11 insertions(+) diff --git a/emacs/notmuch-lib.el

[PATCH 3/3] emacs: add notmuch-assert-cli-sane to notmuch-hello

2014-01-26 Thread David Bremner
This is meant to be the friendly entrypoint, so let's do something better than the mangled output described in id:5228989D.8030607 at fifthhorseman.net --- emacs/notmuch-hello.el | 1 + 1 file changed, 1 insertion(+) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index

[PATCH 2/3] emacs: add function notmuch-assert-cli-sane

2014-01-26 Thread David Bremner
If the CLI seems borked, signal an error, and log a suggestion for the user about how to recover. --- emacs/notmuch-lib.el | 7 +++ 1 file changed, 7 insertions(+) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index dcdfbdc..c195652 100644 --- a/emacs/notmuch-lib.el +++

[PATCH 1/3] emacs: add a function to heuristically test if the CLI is configured OK.

2014-01-26 Thread David Bremner
We cache the result so that we can call the function many places without worrying about the cost. --- emacs/notmuch-lib.el | 11 +++ 1 file changed, 11 insertions(+) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 2be409b..dcdfbdc 100644 --- a/emacs/notmuch-lib.el +++

Bug: notmuch new chokes on dangling symlinks and quits

2014-01-26 Thread Gregor Zattler
Dear notmuch developers, notmuch new quits operation if it hit's a dangling symlink: Error reading file /home/grfz/notmuch2/Mail/findex/cur/123456789.684055.mairix:2,: No such file or directory Note: A fatal error was encountered: Something went wrong trying to read or write a file Processed

[RFC PATCH] configure: check for POSIX.1-2008 realpath(3) implementation.

2014-01-26 Thread Tomi Ollila
On Sun, Jan 26 2014, David Bremner wrote: > Tomi Ollila writes: >> +#if POSIX_2008_REALPATH >> filename = realpath (config->filename, NULL); >> +#else >> +/* compatibility with minor effort, not elegance, is the ruling factor >> + in these (two) else branches... */ >> +char

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

2014-01-26 Thread Tomi Ollila
On Sun, Jan 26 2014, David Bremner wrote: > Tomi Ollila writes: > >> >> How about doing it with defadvice with something like: >> >> (from http://comments.gmane.org/gmane.emacs.bugs/27856 one can notice >> this happening with emacs 23.3 -- David can check whether 23.4 if >> affected) > > It's

[RFC PATCH] configure: check for POSIX.1-2008 realpath(3) implementation.

2014-01-26 Thread David Bremner
Tomi Ollila writes: > > We could also create > > char * realpath2008 (const char * path, char * resolved_path) > { > if (resolved_path == NULL) { > resolved_path = malloc (MAX_PATH); > if (resolved_path == NULL) > return NULL; >

Bug: notmuch new chokes on dangling symlinks and quits

2014-01-26 Thread David Bremner
Gregor Zattler writes: > > I consider this to be a bug. Instead notmuch should simply > ignore the symlink. > Since there is a test for specifically this behaviour, I'd have to say it's a design decision you don't agree with, not a bug ;). In any case, if there is just a few broken symlinks,

[PATCH 0/7] cli: notmuch new improvements

2014-01-26 Thread David Bremner
Jani Nikula writes: > Here's an assortment of notmuch new fixes, non-functional cleanups, and > the oft-requested --quiet option. > pushed. Would be nice to have a simple test for the --quiet option. d

[PATCH] lib: update documentation for notmuch_database_get_directory

2014-01-26 Thread David Bremner
David Bremner writes: > Clarify that using the directory after destroying the corresponding > database is not permitted. > > This is implicit in the description of notmuch_database_destroy, but > it doesn't hurt to be explicit, and we do express similar "ownership" > relationships at other

[PATCH 1/1] build: delete the default .SUFFIXES

2014-01-26 Thread David Bremner
Tomi Ollila writes: > All implicit rules in notmuch Makefiles are "pattern rules"; Deleting the > default suffixes (to support obsolete, old-fashioned "suffix rules") from > make reduces the output of 'make -d' by 40 to 90 percent, helping e.g. > debugging make problems. pushed. d

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

2014-01-26 Thread David Bremner
Tomi Ollila writes: > > (describe-variable 'minibuffer-setup-hook) > > -> (ido-minibuffer-setup rfn-eshadow-setup-minibuffer > minibuffer-history-isearch-setup minibuffer-history-initialize) > > SO, although permanent, consistent w/ newer emacs versions... > Yeah, the other hook is set

[PATCH 1/1] build: write VERSION file containing $(VERSION) string

2014-01-26 Thread Tomi Ollila
This version file will be as prerequisite to the target files that use the version info for some purpose, like printing it to the user to examine. The contents of the VERSION file is seldom read by the build system itself as the $(VERSION) variable has the same information. --- Makefile.local |

[RFC PATCH] configure: check for POSIX.1-2008 realpath(3) implementation.

2014-01-26 Thread Tomi Ollila
On Sat, Jan 25 2014, Tomi Ollila wrote: > Check whether realpath(3) supports the resolved_path == NULL feature, > standardized in POSIX.1-2008. > > This is tested by executing the realpath(3) with NULL as second > argument and the program is expected to SIGSEGV in case the > feature is not

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

2014-01-26 Thread Tomi Ollila
On Sun, Jan 26 2014, David Bremner da...@tethera.net wrote: Tomi Ollila tomi.oll...@iki.fi writes: How about doing it with defadvice with something like: (from http://comments.gmane.org/gmane.emacs.bugs/27856 one can notice this happening with emacs 23.3 -- David can check whether 23.4 if

Re: [RFC PATCH] configure: check for POSIX.1-2008 realpath(3) implementation.

2014-01-26 Thread Tomi Ollila
On Sun, Jan 26 2014, David Bremner da...@tethera.net wrote: Tomi Ollila tomi.oll...@iki.fi writes: +#if POSIX_2008_REALPATH filename = realpath (config-filename, NULL); +#else +/* compatibility with minor effort, not elegance, is the ruling factor + in these (two) else

Bug: notmuch new chokes on dangling symlinks and quits

2014-01-26 Thread Gregor Zattler
Dear notmuch developers, notmuch new quits operation if it hit's a dangling symlink: Error reading file /home/grfz/notmuch2/Mail/findex/cur/123456789.684055.mairix:2,: No such file or directory Note: A fatal error was encountered: Something went wrong trying to read or write a file Processed

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

2014-01-26 Thread David Bremner
Tomi Ollila tomi.oll...@iki.fi writes: (describe-variable 'minibuffer-setup-hook) - (ido-minibuffer-setup rfn-eshadow-setup-minibuffer minibuffer-history-isearch-setup minibuffer-history-initialize) SO, although permanent, consistent w/ newer emacs versions... Yeah, the other hook is set

Re: [PATCH 1/1] build: delete the default .SUFFIXES

2014-01-26 Thread David Bremner
Tomi Ollila tomi.oll...@iki.fi writes: All implicit rules in notmuch Makefiles are pattern rules; Deleting the default suffixes (to support obsolete, old-fashioned suffix rules) from make reduces the output of 'make -d' by 40 to 90 percent, helping e.g. debugging make problems. pushed. d

Re: [PATCH] lib: update documentation for notmuch_database_get_directory

2014-01-26 Thread David Bremner
David Bremner da...@tethera.net writes: Clarify that using the directory after destroying the corresponding database is not permitted. This is implicit in the description of notmuch_database_destroy, but it doesn't hurt to be explicit, and we do express similar ownership relationships at

Re: [PATCH 0/7] cli: notmuch new improvements

2014-01-26 Thread David Bremner
Jani Nikula j...@nikula.org writes: Here's an assortment of notmuch new fixes, non-functional cleanups, and the oft-requested --quiet option. pushed. Would be nice to have a simple test for the --quiet option. d ___ notmuch mailing list

Re: Bug: notmuch new chokes on dangling symlinks and quits

2014-01-26 Thread David Bremner
Gregor Zattler telegr...@gmx.net writes: I consider this to be a bug. Instead notmuch should simply ignore the symlink. Since there is a test for specifically this behaviour, I'd have to say it's a design decision you don't agree with, not a bug ;). In any case, if there is just a few

[PATCH 1/3] emacs: add a function to heuristically test if the CLI is configured OK.

2014-01-26 Thread David Bremner
We cache the result so that we can call the function many places without worrying about the cost. --- emacs/notmuch-lib.el | 11 +++ 1 file changed, 11 insertions(+) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 2be409b..dcdfbdc 100644 --- a/emacs/notmuch-lib.el +++

[PATCH 3/3] emacs: add notmuch-assert-cli-sane to notmuch-hello

2014-01-26 Thread David Bremner
This is meant to be the friendly entrypoint, so let's do something better than the mangled output described in id:5228989d.8030...@fifthhorseman.net --- emacs/notmuch-hello.el | 1 + 1 file changed, 1 insertion(+) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index

[PATCH 2/3] emacs: add function notmuch-assert-cli-sane

2014-01-26 Thread David Bremner
If the CLI seems borked, signal an error, and log a suggestion for the user about how to recover. --- emacs/notmuch-lib.el | 7 +++ 1 file changed, 7 insertions(+) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index dcdfbdc..c195652 100644 --- a/emacs/notmuch-lib.el +++

[PATCH] test: add basic tests for notmuch new --quiet option

2014-01-26 Thread Jani Nikula
This does not cover all the possible paths notmuch new could output stuff, but it's better than nothing. --- test/T050-new.sh | 15 +++ 1 file changed, 15 insertions(+) diff --git a/test/T050-new.sh b/test/T050-new.sh index f27423d..b7668ff 100755 --- a/test/T050-new.sh +++

Re: [PATCH] test: add basic tests for notmuch new --quiet option

2014-01-26 Thread Mark Walters
LGTM +1. Best wishes Mark On Sun, 26 Jan 2014, Jani Nikula j...@nikula.org wrote: This does not cover all the possible paths notmuch new could output stuff, but it's better than nothing. --- test/T050-new.sh | 15 +++ 1 file changed, 15 insertions(+) diff --git

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

2014-01-26 Thread Mark Walters
I don't have anything older than 23.4 anymore so I am afraid I can't test. My recollection is that I upgraded to 23.4 the problem went away so I forgot about it. (I couldn't see easily what version of emacs debian stable has now as seemed to be called 45.) Best wishes Mark On Sat, 25 Jan

Re: [PATCH] emacs: add a function to heuristically test if the CLI is configured OK.

2014-01-26 Thread Mark Walters
This version LGTM +1. (Just for the record there was some discussion on irc about switching to the *notmuch errors* buffer but that is more complex and fragile so let's go with this simple and effective solution.) Best wishes Mark On Sun, 26 Jan 2014, David Bremner da...@tethera.net wrote:

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

2014-01-26 Thread Tomi Ollila
On Sun, Jan 26 2014, Mark Walters markwalters1...@gmail.com wrote: I don't have anything older than 23.4 anymore so I am afraid I can't test. My recollection is that I upgraded to 23.4 the problem went away so I forgot about it. Fine, I prepare and test the patch then ;/ Tomi (I couldn't

Re: [PATCH 1/1] build: write VERSION file containing $(VERSION) string

2014-01-26 Thread Mark Walters
Hi I experimented with this and it didn't always seem to rebuild VERSION when it should. Looking at the file .git/HEAD that just seems to be the branch name not the commit id (unless in detached HEAD state) This link

Re: [PATCH] test: add basic tests for notmuch new --quiet option

2014-01-26 Thread Tomi Ollila
On Sun, Jan 26 2014, Jani Nikula j...@nikula.org wrote: This does not cover all the possible paths notmuch new could output stuff, but it's better than nothing. --- LGTM. Tomi test/T050-new.sh | 15 +++ 1 file changed, 15 insertions(+) diff --git a/test/T050-new.sh

Re: notmuch-emacs bug report -- infinite looping trying to select next message

2014-01-26 Thread Michael Hudson-Doyle
David Bremner da...@tethera.net writes: Michael Hudson-Doyle michael.hud...@canonical.com writes: The attached gzipped mbox appears to trip up the emacs interface. The problem seems to come from the message with id CAGNsrLCWv6=36q+q+5Hc_SzgdZ2ergeKkapT7T3xXvim=2c...@mail.gmail.com. I

Re: Bug?: notmuch-search-show-thread shows several threads; only one containing matching messages

2014-01-26 Thread Gregor Zattler
Hi David, * David Bremner da...@tethera.net [24. Jan. 2014]: Mark Walters markwalters1...@gmail.com writes: I have looked at this and I think this is not notmuch's fault: I think it is a mua doing strange things: One of the mails has an in-reply-to header which looks like In-reply-to:

Re: Bug?: notmuch-search-show-thread shows several threads; only one containing matching messages

2014-01-26 Thread David Bremner
Gregor Zattler telegr...@gmx.net writes: Today I produced another mbox with the very same command but with a now larger email corpus freshly indexed with a fresh notmuch. The mbox contains (according to mutt) 507 messages in 34 threads. One of them is the thread I searched for. I grepped

Re: Bug: notmuch new chokes on dangling symlinks and quits

2014-01-26 Thread Gregor Zattler
Hi David, * David Bremner da...@tethera.net [26. Jan. 2014]: Gregor Zattler telegr...@gmx.net writes: I consider this to be a bug. Instead notmuch should simply ignore the symlink. Since there is a test for specifically this behaviour, I'd have to say it's a design decision you don't

Re: Bug?: notmuch-search-show-thread shows several threads; only one containing matching messages

2014-01-26 Thread Gregor Zattler
Hi David, * David Bremner da...@tethera.net [26. Jan. 2014]: Gregor Zattler telegr...@gmx.net writes: Today I produced another mbox with the very same command but with a now larger email corpus freshly indexed with a fresh notmuch. The mbox contains (according to mutt) 507 messages in 34