Re: [PATCH] emacs: Don't override mm-show-part in notmuch-show-view-part

2013-05-20 Thread Mark Walters
Hi > Previously, notmuch-show-view-part overrode the function binding of > mm-show-part to redirect it to notmuch-show-save-part to get notmuch's > default file name handling in case mm-display-part decided to fall > back to saving the part. In addition to being messy, this depended on > the now

[PATCH 1/2] ruby: use in-tree notmuch library

2013-05-20 Thread Felipe Contreras
On Mon, May 20, 2013 at 9:41 AM, David Bremner wrote: > | extconf.rb:17:in `have_local_library': undefined method `funcall_style' for > "notmuch_database_create":String (NoMethodError) > | from extconf.rb:25:in `' > ` > > I have the ruby 1.9.3 development headers (at least "ruby extcon

[PATCH] emacs: Compute build dependencies to fix byte compile issues

2013-05-20 Thread David Bremner
Austin Clements writes: > Quoth David Bremner on May 19 at 8:15 am: >> >> I guess you need a copyright year? > > Strangely, none of the Elisp files have copyright years. But maybe > they should? OK, I guess no point complaining about this one file. It seems like post Berne convention the exa

how the date query works?

2013-05-20 Thread Jani Nikula
On Mon, 20 May 2013, David Belohrad wrote: > When I open in emacs search, and I type 'date:today', some output > appears, but not the one I would expect. The date: search expects a Xapian range expression, which requires ".." to be present in the query. For example, date:today..today from beginni

Python Bindings missing on PyPI

2013-05-20 Thread Patrick Gerken
Hi, I noticed that the python bindings of notmuch are not available via pypi. It seems that in the past something was registered but is not any longer. Without the bindings, it is not possible to use python packages that depend on notmuch within virtualenv. Virtualenv is a widely used app to run

[PATCH] emacs: Don't override mm-show-part in notmuch-show-view-part

2013-05-20 Thread Austin Clements
Previously, notmuch-show-view-part overrode the function binding of mm-show-part to redirect it to notmuch-show-save-part to get notmuch's default file name handling in case mm-display-part decided to fall back to saving the part. In addition to being messy, this depended on the now-deprecated dyn

[PATCH 2/4] emacs: show: handle inline patch fake parts at top level

2013-05-20 Thread David Bremner
Mark Walters writes: > The inline patch fake part handler also modifies the content-type so > handle this in notmuch-show-insert-bodypart too. Pushed the first two in the series. d

how the date query works?

2013-05-20 Thread David Belohrad
Dear all, could someone explain how to use date query? As of Oct 2012 Jani added set of patches doing date query. When I open in emacs search, and I type 'date:today', some output appears, but not the one I would expect. Interesting enough is, that if I press 'da' and then , it offers date searc

Re: [PATCH 1/2] ruby: use in-tree notmuch library

2013-05-20 Thread Felipe Contreras
On Mon, May 20, 2013 at 9:41 AM, David Bremner wrote: > | extconf.rb:17:in `have_local_library': undefined method `funcall_style' for > "notmuch_database_create":String (NoMethodError) > | from extconf.rb:25:in `' > ` > > I have the ruby 1.9.3 development headers (at least "ruby extcon

Solaris support - missing or incompatible functions

2013-05-20 Thread Vladimir Marek
[...] > That must be some setting in (your?) bash: > > $ sh -c 'echo '\''foo\nbar'\''' > foo > bar > > $ bash -c 'echo '\''foo\nbar'\''' > foo\nbar > > $ dash -c 'echo '\''foo\nbar'\''' > foo > bar > > ... after a bit digging ... > > $ bash -c 'shopt -s xpg_echo; echo '\''foo\nbar'\''' > foo

[PATCH 1/2] contrib: pick: move save-excursion closer to message insertion

2013-05-20 Thread David Bremner
Mark Walters writes: > Pick keeps point roughly at the top of the buffer while inserting > messages at the end as they come in (from the async > parser). Previously the save-excursion to do this was done once for > each thread inserted: now it is done for each individual message. pushed this, an

Solaris support - missing or incompatible functions

2013-05-20 Thread Tomi Ollila
On Mon, May 20 2013, Vladimir Marek wrote: >> >> There may be some prerequisites to running tests that you're missing, >> >> and the test setup fails to tell you about. A pastebin of the 'make >> >> test' output might be helpful. >> > >> > Ok, in that case please let me take a look at the tests f

[PATCH] emacs: Don't override mm-show-part in notmuch-show-view-part

2013-05-20 Thread Austin Clements
Previously, notmuch-show-view-part overrode the function binding of mm-show-part to redirect it to notmuch-show-save-part to get notmuch's default file name handling in case mm-display-part decided to fall back to saving the part. In addition to being messy, this depended on the now-deprecated dyn

[PATCH] emacs: Avoid deprecated function flet

2013-05-20 Thread Austin Clements
Quoth David Bremner on May 20 at 12:45 pm: > Austin Clements writes: > > > flet was deprecated in Emacs 24.3 and replaced with cl-flet. However, > > cl-flet lexically binds the function symbol, while we depend on flet > > dynamically binding the function symbol. Hence, this patch replaces > > t

[PATCH] devel: add dkg's printmimestructure script to notmuch devel scripts

2013-05-20 Thread da...@tethera.net
From: David Bremner I find this script pretty useful when figuring out who to blame for MIME rendering problems. It currently isn't very widely known, so it seems worth distributing with notmuch. --- I did a small amount whitespace cleanup compared to version in dkg's git repo. devel/printmim

Re: [PATCH] emacs: Compute build dependencies to fix byte compile issues

2013-05-20 Thread David Bremner
Austin Clements writes: > Quoth David Bremner on May 19 at 8:15 am: >> >> I guess you need a copyright year? > > Strangely, none of the Elisp files have copyright years. But maybe > they should? OK, I guess no point complaining about this one file. It seems like post Berne convention the exa

[PATCH] emacs: Avoid deprecated function flet

2013-05-20 Thread David Bremner
Austin Clements writes: > flet was deprecated in Emacs 24.3 and replaced with cl-flet. However, > cl-flet lexically binds the function symbol, while we depend on flet > dynamically binding the function symbol. Hence, this patch replaces > the deprecated flet use with letf, which lets us dynamic

[PATCH] devel: add dkg's printmimestructure script to notmuch devel scripts

2013-05-20 Thread Daniel Kahn Gillmor
RL: <http://notmuchmail.org/pipermail/notmuch/attachments/20130520/0a9081f6/attachment.pgp>

Solaris support - missing or incompatible functions

2013-05-20 Thread Vladimir Marek
> >> There may be some prerequisites to running tests that you're missing, > >> and the test setup fails to tell you about. A pastebin of the 'make > >> test' output might be helpful. > > > > Ok, in that case please let me take a look at the tests first. > > > > For what it's worth, I can confirm

Re: [PATCH 2/4] emacs: show: handle inline patch fake parts at top level

2013-05-20 Thread David Bremner
Mark Walters writes: > The inline patch fake part handler also modifies the content-type so > handle this in notmuch-show-insert-bodypart too. Pushed the first two in the series. d ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.or

[PATCH 1/2] ruby: use in-tree notmuch library

2013-05-20 Thread David Bremner
Felipe Contreras writes: > Currently it simply finds any library available, and if notmuch is > installed in the system, it would give priority to that library. > I like the concept, but I get the following: , | ?? zancas:upstream/notmuch/bindings/ruby | ?? (git)-[rubytest]-% ruby extconf

Python Bindings missing on PyPI

2013-05-20 Thread David Bremner
Patrick Gerken writes: > > Is there any rationale that prevents registering the python bindings > on pypi? > If this is only because of missing maintainer, would anybody > object if I put the bindings on pypi? I imagine the python bindings are pretty dependent on the version of notmuch they ship

how the date query works?

2013-05-20 Thread David Bremner
David Belohrad writes: > > Is there any kind of manual how to use it? I'm of course particularly > interested in 'today', 'yesterday', 'last week', 'last month' :) > See man notmuch-search-terms http://notmuchmail.org/manpages/notmuch-search-terms-7/

Re: [PATCH 1/2] contrib: pick: move save-excursion closer to message insertion

2013-05-20 Thread David Bremner
Mark Walters writes: > Pick keeps point roughly at the top of the buffer while inserting > messages at the end as they come in (from the async > parser). Previously the save-excursion to do this was done once for > each thread inserted: now it is done for each individual message. pushed this, an

Re: [PATCH] emacs: Avoid deprecated function flet

2013-05-20 Thread Austin Clements
Quoth David Bremner on May 20 at 12:45 pm: > Austin Clements writes: > > > flet was deprecated in Emacs 24.3 and replaced with cl-flet. However, > > cl-flet lexically binds the function symbol, while we depend on flet > > dynamically binding the function symbol. Hence, this patch replaces > > t

Re: [PATCH] devel: add dkg's printmimestructure script to notmuch devel scripts

2013-05-20 Thread Daniel Kahn Gillmor
On 05/20/2013 11:59 AM, da...@tethera.net wrote: > From: David Bremner > > I find this script pretty useful when figuring out who to blame for > MIME rendering problems. It currently isn't very widely known, so it > seems worth distributing with notmuch. I'm happy to have this distributed with

[PATCH] devel: add dkg's printmimestructure script to notmuch devel scripts

2013-05-20 Thread david
From: David Bremner I find this script pretty useful when figuring out who to blame for MIME rendering problems. It currently isn't very widely known, so it seems worth distributing with notmuch. --- I did a small amount whitespace cleanup compared to version in dkg's git repo. devel/printmim

Re: [PATCH] emacs: Avoid deprecated function flet

2013-05-20 Thread David Bremner
Austin Clements writes: > flet was deprecated in Emacs 24.3 and replaced with cl-flet. However, > cl-flet lexically binds the function symbol, while we depend on flet > dynamically binding the function symbol. Hence, this patch replaces > the deprecated flet use with letf, which lets us dynamic

Re: [PATCH 1/2] ruby: use in-tree notmuch library

2013-05-20 Thread David Bremner
Felipe Contreras writes: > Currently it simply finds any library available, and if notmuch is > installed in the system, it would give priority to that library. > I like the concept, but I get the following: , | ╭─ zancas:upstream/notmuch/bindings/ruby | ╰─ (git)-[rubytest]-% ruby extconf

Re: Python Bindings missing on PyPI

2013-05-20 Thread David Bremner
Patrick Gerken writes: > > Is there any rationale that prevents registering the python bindings > on pypi? > If this is only because of missing maintainer, would anybody > object if I put the bindings on pypi? I imagine the python bindings are pretty dependent on the version of notmuch they ship

[PATCH 2/2] ruby: fix missing symbol UINT2FIX()

2013-05-20 Thread Felipe Contreras
It has never existed in Ruby (maybe JRuby). Fortunately the symbols are loaded lazily, so nobody would notice unless they try 'query::count_messages'. Signed-off-by: Felipe Contreras --- bindings/ruby/query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/ruby/query

[PATCH 1/2] ruby: use in-tree notmuch library

2013-05-20 Thread Felipe Contreras
Currently it simply finds any library available, and if notmuch is installed in the system, it would give priority to that library. Let's implement our own helper functions to link directly to the local library, and give priority to the local header file. Also, add an option to properly check if

[PATCH 0/2] ruby: general improvements

2013-05-20 Thread Felipe Contreras
Hi, Not much to say here. Felipe Contreras (2): ruby: use in-tree notmuch library ruby: fix missing symbol UINT2FIX() bindings/ruby/extconf.rb | 23 --- bindings/ruby/query.c| 2 +- 2 files changed, 21 insertions(+), 4 deletions(-) -- 1.8.3.rc3.286.g3d43083

Re: how the date query works?

2013-05-20 Thread Jani Nikula
On Mon, 20 May 2013, David Belohrad wrote: > When I open in emacs search, and I type 'date:today', some output > appears, but not the one I would expect. The date: search expects a Xapian range expression, which requires ".." to be present in the query. For example, date:today..today from beginni

Python Bindings missing on PyPI

2013-05-20 Thread Patrick Gerken
Hi, I noticed that the python bindings of notmuch are not available via pypi. It seems that in the past something was registered but is not any longer. Without the bindings, it is not possible to use python packages that depend on notmuch within virtualenv. Virtualenv is a widely used app to run

Re: how the date query works?

2013-05-20 Thread David Bremner
David Belohrad writes: > > Is there any kind of manual how to use it? I'm of course particularly > interested in 'today', 'yesterday', 'last week', 'last month' :) > See man notmuch-search-terms http://notmuchmail.org/manpages/notmuch-search-terms-7/ ___

how the date query works?

2013-05-20 Thread David Belohrad
Dear all, could someone explain how to use date query? As of Oct 2012 Jani added set of patches doing date query. When I open in emacs search, and I type 'date:today', some output appears, but not the one I would expect. Interesting enough is, that if I press 'da' and then , it offers date searc

Re: Re: Re: Solaris support - missing or incompatible functions

2013-05-20 Thread Vladimir Marek
[...] > That must be some setting in (your?) bash: > > $ sh -c 'echo '\''foo\nbar'\''' > foo > bar > > $ bash -c 'echo '\''foo\nbar'\''' > foo\nbar > > $ dash -c 'echo '\''foo\nbar'\''' > foo > bar > > ... after a bit digging ... > > $ bash -c 'shopt -s xpg_echo; echo '\''foo\nbar'\''' > foo

[PATCH 2/2] ruby: fix missing symbol UINT2FIX()

2013-05-20 Thread Felipe Contreras
It has never existed in Ruby (maybe JRuby). Fortunately the symbols are loaded lazily, so nobody would notice unless they try 'query::count_messages'. Signed-off-by: Felipe Contreras --- bindings/ruby/query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/ruby/query

[PATCH 1/2] ruby: use in-tree notmuch library

2013-05-20 Thread Felipe Contreras
Currently it simply finds any library available, and if notmuch is installed in the system, it would give priority to that library. Let's implement our own helper functions to link directly to the local library, and give priority to the local header file. Also, add an option to properly check if

[PATCH 0/2] ruby: general improvements

2013-05-20 Thread Felipe Contreras
Hi, Not much to say here. Felipe Contreras (2): ruby: use in-tree notmuch library ruby: fix missing symbol UINT2FIX() bindings/ruby/extconf.rb | 23 --- bindings/ruby/query.c| 2 +- 2 files changed, 21 insertions(+), 4 deletions(-) -- 1.8.3.rc3.286.g3d43083 _

Re: Re: Solaris support - missing or incompatible functions

2013-05-20 Thread Tomi Ollila
On Mon, May 20 2013, Vladimir Marek wrote: >> >> There may be some prerequisites to running tests that you're missing, >> >> and the test setup fails to tell you about. A pastebin of the 'make >> >> test' output might be helpful. >> > >> > Ok, in that case please let me take a look at the tests f

Re: Re: Solaris support - missing or incompatible functions

2013-05-20 Thread Vladimir Marek
> >> There may be some prerequisites to running tests that you're missing, > >> and the test setup fails to tell you about. A pastebin of the 'make > >> test' output might be helpful. > > > > Ok, in that case please let me take a look at the tests first. > > > > For what it's worth, I can confirm