Re: notmuch search and tags

2012-11-05 Thread Mark Walters
Hi Do you have some customisation of the notmuch search line (notmuch-search-result-format) in your .emacs file? Previously the user specified format for tags was ignored (and automatically enclosed the tags in brackets). Over the summer Austin fixed this and many other bugs (with the move to

Re: [PATCH 05/10] install: check for non-SysV version (Solaris support)

2012-11-05 Thread Jani Nikula
On Mon, 05 Nov 2012, Blake Jones bla...@foo.net wrote: +INSTALL=install +printf Checking for working \install\ program... +mkdir _tmp_ This doesn't feel like a hot idea. Out of curiosity, why not? Note that I'm only referring to creating temp directories like this to check for the

Re: [PATCH 10/10] timegm: add portable implementation (Solaris support)

2012-11-05 Thread Tomi Ollila
On Sun, Nov 04 2012, Blake Jones wrote: Hi Jani, I'd prefer to use timegm() where available, and the suggested alternative [1] elsewhere. [1] http://www.kernel.org/doc/man-pages/online/pages/man3/timegm.3.html I considered this alternative, but decided against it because it's completely

Re: [PATCH 05/10] install: check for non-SysV version (Solaris support)

2012-11-05 Thread Blake Jones
On Mon, 05 Nov 2012, Blake Jones bla...@foo.net wrote: +INSTALL=install +printf Checking for working \install\ program... +mkdir _tmp_ This doesn't feel like a hot idea. Out of curiosity, why not? Note that I'm only referring to creating temp directories like this to check

Re: Automatic suppression of non-duplicate messages

2012-11-05 Thread Eirik Byrkjeflot Anonsen
Jani Nikula j...@nikula.org writes: On Sat, 03 Nov 2012, David Bremner da...@tethera.net wrote: Offhand I'm not sure of a good method of automatically deciding what is the same message (with e.g. headers and footer text added by a mailing list). Assuming there was good method, what would

Re: [PATCH 10/10] timegm: add portable implementation (Solaris support)

2012-11-05 Thread Blake Jones
Yet another idea for an alternative. Compile by entering 'sh xtimegm.c' and then run ./xtimegm Simple cases seems to work. Dst change may (or then may not) give one hour difference to the expected. The test coverage could be easily expanded to that ;) Hmm, I also found this:

Re: notmuch search and tags

2012-11-05 Thread Aneesh Kumar K.V
Mark Walters markwalters1...@gmail.com writes: Hi Do you have some customisation of the notmuch search line (notmuch-search-result-format) in your .emacs file? Previously the user specified format for tags was ignored (and automatically enclosed the tags in brackets). Over the summer

Re: [PATCH 10/10] timegm: add portable implementation (Solaris support)

2012-11-05 Thread Tomi Ollila
On Mon, Nov 05 2012, Blake Jones wrote: Yet another idea for an alternative. Compile by entering 'sh xtimegm.c' and then run ./xtimegm Simple cases seems to work. Dst change may (or then may not) give one hour difference to the expected. The test coverage could be easily expanded to that

Re: [PATCH 10/10] timegm: add portable implementation (Solaris support)

2012-11-05 Thread Blake Jones
The other approaches rely on letting libc do all the hard work of time zone manipulation, and then reading the tea leaves to find a way to undo it. Did you look at the gnu libc version -- I bet it is pretty hairy... I didn't look at either the GNU or the Solaris libc version. But the file

Re: [PATCH 00/10] Solaris support

2012-11-05 Thread Blake Jones
Just now I don't have more time to comment and review more, but in the first 2/3 patches when I tried to compile I got problem NULL not defined. Oh! Yes, I should include stdio.h to pull in the definition of NULL. I'll fix that. Another thing: you have this +# Whether the asctime_r

[PATCH v2 00/10] Solaris support

2012-11-05 Thread Blake Jones
Thanks to Jani Nikula and Tomi Ollila for their comments. Changes since last version: - Add feature test for timegm(); move portable implementation of timegm() into compat/, change libparse-time-string to pull in .o's from compat/. - Include stdio.h in compat/check_*.c, to get definition

[PATCH v2 01/10] getpwuid: check for standards compliance (Solaris support)

2012-11-05 Thread Blake Jones
Add checks to configure to see whether _POSIX_PTHREAD_SEMANTICS needs to be defined to get the right number of arguments in the prototypes for getpwuid_r(). Solaris' default implementation conforms to POSIX.1c Draft 6, rather than the final POSIX.1c spec. The standards-compliant version can be

[PATCH v2 02/10] asctime: check for standards compliance (Solaris support)

2012-11-05 Thread Blake Jones
Add checks to configure to see whether _POSIX_PTHREAD_SEMANTICS needs to be defined to get the right number of arguments in the prototypes for asctime_r(). Solaris' default implementation conforms to POSIX.1c Draft 6, rather than the final POSIX.1c spec. The standards-compliant version can be

[PATCH v2 04/10] configure: check for -Wl,-rpath (Solaris support)

2012-11-05 Thread Blake Jones
Add a check to configure to see whether -Wl,-rpath can be used without --enable-new-dtags. Solaris needs the former and doesn't know about the latter. --- configure |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 9707f11..c9da667 100755 ---

[PATCH v2 06/10] strsep: check for availability (Solaris support)

2012-11-05 Thread Blake Jones
Solaris does not ship a version of the strsep() function. This change adds a check to configure to see whether notmuch needs to provide its own implementation, and if so, it uses the new version in compat/strsep.c (which was copied from Mutt, and apparently before that from glibc). ---

[PATCH v2 05/10] install: check for non-SysV version (Solaris support)

2012-11-05 Thread Blake Jones
Solaris ships a program called install in /usr/sbin, which performs a task that's fairly similar to the GNU and BSD install programs but which uses very different command line arguments. In particular, if it is invoked without -c, -f, or -n, it will search the target directory for a file with the

[PATCH v2 08/10] notmuch-config: use strchr(), not index() (Solaris support)

2012-11-05 Thread Blake Jones
notmuch-config.c has the only use of the function named index() in the notmuch source. Several other places use the equivalent function strchr(); this patch just fixes notmuch-config.c to use strchr() instead. (Solaris needs to include strings.h to get the prototype for index(), and

[PATCH v2 07/10] gen-version-script: parse Solaris nm output (Solaris support)

2012-11-05 Thread Blake Jones
The output of nm on Solaris is substantially different from that on Linux, and the current version of gen-version-script is tied to the Linux nm output. This patch separates the parts of nm processing which are dependent on the output format into a couple shell functions, and makes another shell

[PATCH v2 09/10] debugger.c: correct return type from getppid() (Solaris support)

2012-11-05 Thread Blake Jones
Cast the return value of getppid() to int from pid_t in debugger.c, since it is being passed to sprintf(%d), which wants an int argument. On Solaris, pid_t is a long for 32-bit programs. --- debugger.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/debugger.c

[PATCH v2 10/10] timegm: add portable implementation (Solaris support)

2012-11-05 Thread Blake Jones
The timegm(3) function is a non-standard extension to libc which is available in GNU libc and on some BSDs. Although SunOS had this function in its libc, Solaris (unfortunately) removed it. This patch implements a very simple version of timegm() which is good enough for parse-time-string.c. One

Re: [PATCH 0/4 v4] lib: Maildir flags synchronization fixes

2012-11-05 Thread Daniel
On Thu, Sep 15, 2011 at 12:23:17AM +0200, Louis Rilling wrote: The intent for the fourth patch (detailed in the commit log) is to allow mutt users to keep using the new status, as long as notmuch can respect the maildir specification. The third patch implements a test for the new desired

Re: python-notmuch decoding error on a message

2012-11-05 Thread David Bremner
Antoine Amarilli antoine.amari...@ens.fr writes: Hello, The attached message makes python-notmuch crash when trying to access it (see attached log). I don't know if the encoding of Subject is valid or not, but it would probably be better anyway to ignore decoding errors and return some

Re: [PATCH 0/4 v4] lib: Maildir flags synchronization fixes

2012-11-05 Thread David Bremner
Daniel qu...@hack.org writes: On Mon, Nov 21, 2011 at 08:41:42PM -0400, David Bremner wrote: I pushed the first two patches in this series; the second two need to be updated for the new broken test framework, and reviewed. And old one... What came of this patch? I came across it, having

Re: [PATCH v2 0/2] include Reply-To headers in json output

2012-11-05 Thread Ethan Glasser-Camp
Peter Wang noval...@gmail.com writes: This obsoletes the series 1340508470-16606-1-git-send-email-noval...@gmail.com Only json output is affected now. Peter Wang (2): show: include Reply-To header in json output test: add test for showing Reply-To headers LGTM. Removed needs-review,

Re: [PATCH] fix notmuch_database_open call in addrlookup

2012-11-05 Thread Ethan Glasser-Camp
James Vasile ja...@hackervisions.org writes: What's the best way to submit changes to addrlookup? Right now, it is out of date vs the latest libnotmuch. The addrlookup repo is vala code but the wiki [1] points to a generated c file [2]. [1]

Re: [PATCH 1/1] uncrustify.cfg: added 3 new types for uncrustify to know

2012-11-05 Thread Ethan Glasser-Camp
Tomi Ollila tomi.oll...@iki.fi writes: Added FILE, notmuch_show_params_t and sprinter_t to be types when uncrustifying sources. This affect spacing when uncrustify is deciding for type declaration instead of binary multiplication operation. This looks good to me. If you had plenty of time

Re: [PATCH 1/1] uncrustify.cfg: added 3 new types for uncrustify to know

2012-11-05 Thread Tomi Ollila
On Tue, Nov 06 2012, Ethan Glasser-Camp ethan.glasser.c...@gmail.com wrote: Tomi Ollila tomi.oll...@iki.fi writes: Added FILE, notmuch_show_params_t and sprinter_t to be types when uncrustifying sources. This affect spacing when uncrustify is deciding for type declaration instead of binary

Automatic suppression of non-duplicate messages

2012-11-05 Thread Jani Nikula
On Sat, 03 Nov 2012, David Bremner wrote: > Eirik Byrkjeflot Anonsen writes: > >> That's not what I see. If I search for a term that only appears in >> one of the "copies", none of the copies are included in the search >> result. > > The offending code is at line 1813 of lib/database.cc; the

notmuch search and tags

2012-11-05 Thread Aneesh Kumar K.V
We have the mails appearing as below now. Earlier the tags towards the end used be enclosed in "(" ")" [21/21] Today 10:57Blake Jones, Jani Nikula, Tomi Ollila[PATCH 05/10] install: check for non-SysV version (Solaris support) notmuch unread [5/5] Today 09:58Eirik Byrkjeflot

notmuch search and tags

2012-11-05 Thread Mark Walters
Hi Do you have some customisation of the notmuch search line (notmuch-search-result-format) in your .emacs file? Previously the user specified format for tags was ignored (and automatically enclosed the tags in brackets). Over the summer Austin fixed this and many other bugs (with the move to

[PATCH 05/10] install: check for non-SysV version (Solaris support)

2012-11-05 Thread Jani Nikula
On Mon, 05 Nov 2012, Blake Jones wrote: >> > +INSTALL="install" >> > +printf "Checking for working \"install\" program... " >> > +mkdir _tmp_ >> >> This doesn't feel like a hot idea. > > Out of curiosity, why not? Note that I'm only referring to creating temp directories like this to check for

[PATCH 10/10] timegm: add portable implementation (Solaris support)

2012-11-05 Thread Tomi Ollila
On Sun, Nov 04 2012, Blake Jones wrote: > Hi Jani, > >> I'd prefer to use timegm() where available, and the suggested >> alternative [1] elsewhere. >> >> [1] http://www.kernel.org/doc/man-pages/online/pages/man3/timegm.3.html > > I considered this alternative, but decided against it because it's

[PATCH 05/10] install: check for non-SysV version (Solaris support)

2012-11-05 Thread Blake Jones
> On Mon, 05 Nov 2012, Blake Jones wrote: > >> > +INSTALL="install" > >> > +printf "Checking for working \"install\" program... " > >> > +mkdir _tmp_ > >> > >> This doesn't feel like a hot idea. > > > > Out of curiosity, why not? > > Note that I'm only referring to creating temp directories

Automatic suppression of non-duplicate messages

2012-11-05 Thread Eirik Byrkjeflot Anonsen
Jani Nikula writes: > On Sat, 03 Nov 2012, David Bremner wrote: >> Offhand I'm not sure of a good method of automatically deciding what is >> the same message (with e.g. headers and footer text added by a mailing >> list). > > Assuming there was good method, what would you do with two different

[PATCH 10/10] timegm: add portable implementation (Solaris support)

2012-11-05 Thread Blake Jones
> Yet another idea for an alternative. Compile by entering 'sh xtimegm.c' > and then run ./xtimegm > > Simple cases seems to work. Dst change may (or then may not) give one > hour difference to the expected. The test "coverage" could be easily > expanded to that ;) > > Hmm, I also found this: >

notmuch search and tags

2012-11-05 Thread Aneesh Kumar K.V
Mark Walters writes: > Hi > > Do you have some customisation of the notmuch search line > (notmuch-search-result-format) in your .emacs file? > > Previously the user specified format for tags was ignored (and > automatically enclosed the tags in brackets). Over the summer Austin > fixed this and

[PATCH 10/10] timegm: add portable implementation (Solaris support)

2012-11-05 Thread Tomi Ollila
On Mon, Nov 05 2012, Blake Jones wrote: >> Yet another idea for an alternative. Compile by entering 'sh xtimegm.c' >> and then run ./xtimegm >> >> Simple cases seems to work. Dst change may (or then may not) give one >> hour difference to the expected. The test "coverage" could be easily >>

[PATCH 10/10] timegm: add portable implementation (Solaris support)

2012-11-05 Thread Blake Jones
>> The other approaches rely on letting libc do all the hard work of >> time zone manipulation, and then reading the tea leaves to find a way >> to undo it. > > Did you look at the gnu libc version -- I bet it is pretty hairy... I didn't look at either the GNU or the Solaris libc version. But

[PATCH 00/10] Solaris support

2012-11-05 Thread Blake Jones
> Just now I don't have more time to comment and review more, but in the > first 2/3 patches when I tried to compile I got problem NULL not > defined. Oh! Yes, I should include to pull in the definition of NULL. I'll fix that. > Another thing: you have this > > +# Whether the asctime_r

[PATCH v2 00/10] Solaris support

2012-11-05 Thread Blake Jones
Thanks to Jani Nikula and Tomi Ollila for their comments. Changes since last version: - Add feature test for timegm(); move portable implementation of timegm() into compat/, change libparse-time-string to pull in .o's from compat/. - Include in compat/check_*.c, to get definition of NULL.

[PATCH v2 01/10] getpwuid: check for standards compliance (Solaris support)

2012-11-05 Thread Blake Jones
Add checks to "configure" to see whether _POSIX_PTHREAD_SEMANTICS needs to be defined to get the right number of arguments in the prototypes for getpwuid_r(). Solaris' default implementation conforms to POSIX.1c Draft 6, rather than the final POSIX.1c spec. The standards-compliant version can be

[PATCH v2 02/10] asctime: check for standards compliance (Solaris support)

2012-11-05 Thread Blake Jones
Add checks to "configure" to see whether _POSIX_PTHREAD_SEMANTICS needs to be defined to get the right number of arguments in the prototypes for asctime_r(). Solaris' default implementation conforms to POSIX.1c Draft 6, rather than the final POSIX.1c spec. The standards-compliant version can be

[PATCH v2 03/10] gethostbyname: check for libnsl (Solaris support)

2012-11-05 Thread Blake Jones
Add a check to "configure" to see whether -lnsl is needed for programs that are using gethostbyname(). This change also adds the file "compat/check_ghbn.c", which configure uses to perform its check. --- compat/check_ghbn.c |9 + configure | 17 - 2 files

[PATCH v2 04/10] configure: check for -Wl,-rpath (Solaris support)

2012-11-05 Thread Blake Jones
Add a check to "configure" to see whether -Wl,-rpath can be used without --enable-new-dtags. Solaris needs the former and doesn't know about the latter. --- configure |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 9707f11..c9da667 100755

[PATCH v2 06/10] strsep: check for availability (Solaris support)

2012-11-05 Thread Blake Jones
Solaris does not ship a version of the strsep() function. This change adds a check to "configure" to see whether notmuch needs to provide its own implementation, and if so, it uses the new version in "compat/strsep.c" (which was copied from Mutt, and apparently before that from glibc). ---

[PATCH v2 05/10] install: check for non-SysV version (Solaris support)

2012-11-05 Thread Blake Jones
Solaris ships a program called "install" in /usr/sbin, which performs a task that's fairly similar to the GNU and BSD "install" programs but which uses very different command line arguments. In particular, if it is invoked without "-c", "-f", or "-n", it will search the target directory for a

[PATCH v2 08/10] notmuch-config: use strchr(), not index() (Solaris support)

2012-11-05 Thread Blake Jones
notmuch-config.c has the only use of the function named "index()" in the notmuch source. Several other places use the equivalent function "strchr()"; this patch just fixes notmuch-config.c to use strchr() instead. (Solaris needs to include to get the prototype for index(), and notmuch-config.c

[PATCH v2 07/10] gen-version-script: parse Solaris "nm" output (Solaris support)

2012-11-05 Thread Blake Jones
The output of "nm" on Solaris is substantially different from that on Linux, and the current version of gen-version-script is tied to the Linux "nm" output. This patch separates the parts of "nm" processing which are dependent on the output format into a couple shell functions, and makes another

[PATCH v2 09/10] debugger.c: correct return type from getppid() (Solaris support)

2012-11-05 Thread Blake Jones
Cast the return value of getppid() to "int" from "pid_t" in debugger.c, since it is being passed to sprintf("%d"), which wants an "int" argument. On Solaris, "pid_t" is a "long" for 32-bit programs. --- debugger.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH v2 10/10] timegm: add portable implementation (Solaris support)

2012-11-05 Thread Blake Jones
The timegm(3) function is a non-standard extension to libc which is available in GNU libc and on some BSDs. Although SunOS had this function in its libc, Solaris (unfortunately) removed it. This patch implements a very simple version of timegm() which is good enough for parse-time-string.c. One

python-notmuch decoding error on a message

2012-11-05 Thread David Bremner
Antoine Amarilli writes: > Hello, > > The attached message makes python-notmuch crash when trying to access it (see > attached log). > > I don't know if the encoding of Subject is valid or not, but it would probably > be better anyway to ignore decoding errors and return some approximation of >

[PATCH] tag: Automatically limit to messages whose tags will actually change.

2012-11-05 Thread David Bremner
Sebastian Spaeth writes: > On Wed, 09 Nov 2011 08:46:02 +, Jani Nikula wrote: >> It's unrelated, but looking at the above also made me check something >> I've suspected before: notmuch allows you to have empty or zero length >> tags "", which is probably not intentional. > > I had reported

[PATCH 0/4 v4] lib: Maildir flags synchronization fixes

2012-11-05 Thread David Bremner
Daniel writes: > On Mon, Nov 21, 2011 at 08:41:42PM -0400, David Bremner wrote: >> I pushed the first two patches in this series; the second two need to be >> updated for the new "broken test" framework, and reviewed. > > And old one... What came of this patch? > > I came across it, having been

[PATCH v2 0/2] include Reply-To headers in json output

2012-11-05 Thread Ethan Glasser-Camp
Peter Wang writes: > This obsoletes the series 1340508470-16606-1-git-send-email-novalazy at > gmail.com > Only json output is affected now. > > Peter Wang (2): > show: include Reply-To header in json output > test: add test for showing Reply-To headers LGTM. Removed needs-review, added

[PATCH] fix notmuch_database_open call in addrlookup

2012-11-05 Thread Ethan Glasser-Camp
James Vasile writes: > What's the best way to submit changes to addrlookup? Right now, it is > out of date vs the latest libnotmuch. The addrlookup repo is vala code > but the wiki [1] points to a generated c file [2]. > > [1]

[PATCH 1/1] uncrustify.cfg: added 3 new types for uncrustify to know

2012-11-05 Thread Ethan Glasser-Camp
Tomi Ollila writes: > Added FILE, notmuch_show_params_t and sprinter_t to be > types when uncrustifying sources. This affect spacing > when uncrustify is deciding for type declaration instead > of binary multiplication operation. This looks good to me. If you had plenty of time and no more