Difference between search and filter

2010-11-25 Thread Xavier Maillard
Hi [I know I am really late on this one ;)] On Mon, 19 Apr 2010 18:16:53 -0700, Carl Worth wrote: > On Tue, 20 Apr 2010 00:23:01 +0200, Xavier Maillard wrote: > > GNU Emacs interface comes with 2 functions I am not sure I am > > using correctly. > > > > What's the difference between searching

[PATCH] test: Add some more emacs tests.

2010-11-25 Thread David Edmondson
Simple version of the `notmuch-hello' test, some tests of the matrix reflection code and the 're:' stripping code. --- emacs/notmuch-test.el| 62 +++-- test/emacs-ert |3 ++ test/emacs.expected-output/emacs-ert | 20

C coding conventions for notmuch

2010-11-25 Thread Michal Sojka
On Wed, 24 Nov 2010, Daniel Kahn Gillmor wrote: > On 11/24/2010 04:25 PM, Michal Sojka wrote: > > (c-cleanup-list . (space-before-funcall)) > > This line makes my emacs prompt that it "may not be safe" -- it seems > impolite to ask users just opening up the code within emacs to

[PATCH 1/3] test: Add ERT for emacs testing.

2010-11-25 Thread David Edmondson
in emacs itself. dme. -- David Edmondson, http://dme.org -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20101125/c880bb61/attachment.pgp>

[PATCH 3/3] test: Add ERT tests for Fcc determination.

2010-11-25 Thread David Edmondson
Add ERT tests to cover various settings of `notmuch-fcc-dirs'. --- emacs/notmuch-test.el| 96 ++ test/emacs-ert | 17 ++ test/emacs.expected-output/emacs-ert |9 +++ 3 files changed, 122 insertions(+), 0

[PATCH 2/3] emacs: Fix Fcc generation.

2010-11-25 Thread David Edmondson
The previous code did not correctly identify an old configuration and, as a consequence, broke new configurations. Minor re-arrangement to assist testing. --- emacs/notmuch-maildir-fcc.el | 107 +- 1 files changed, 53 insertions(+), 54 deletions(-) diff

[PATCH 1/3] test: Add ERT for emacs testing.

2010-11-25 Thread David Edmondson
ERT is for Emacs Lisp Regression Testing, from https://github.com/ohler/ert.git. The ERT files added here were extracted from the ERT repository. The 'basic' test should ignore emacs backup files (*~). --- test/basic|2 +- test/ert/ert-batch.el | 152 +++ test/ert/ert-run.el

Inconsistent output from "notmuch search --output="

2010-11-25 Thread Jameson Rollins
next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20101125/0de0ec93/attachment.pgp>

[FEATURE REQUEST]: post-processing on notmuch new

2010-11-25 Thread Sebastian Spaeth
A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20101125/6be11682/attachment.pgp>

[FEATURE REQUEST]: post-processing on notmuch new

2010-11-25 Thread Xavier Maillard
On Thu, 25 Nov 2010 08:00:03 +0100, Sebastian Spaeth wrote: > On Thu, 25 Nov 2010 00:30:45 -0500, Ben Gamari wrote: > > I, for one, simply have a get-mail script > > which calls offlineimap, notmuch new, and finally my sorting > > script. This seems like a more straightforward way to manage

[FEATURE REQUEST]: post-processing on notmuch new

2010-11-25 Thread Sebastian Spaeth
L: <http://notmuchmail.org/pipermail/notmuch/attachments/20101125/d83d5bd2/attachment.pgp>

Folders to tags

2010-11-25 Thread Sebastian Spaeth
gp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20101125/54d82f07/attachment.pgp>

Folders to tags

2010-11-25 Thread Austin Clements
the messages in these folders and run a big notmuch tag command, but this sounds slow and potentially error-prone. Are there good solutions to this problem? -- next part -- An HTML attachment was scrubbed... URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20101

[FEATURE REQUEST]: post-processing on notmuch new

2010-11-25 Thread Ben Gamari
On Wed, 24 Nov 2010 23:27:45 +0100, Xavier Maillard wrote: > Hi, > > Am I alone thinking it could be cool to specify a post-processing script > to run after 'notmuch new' ? > > Currently, one can tell notmuch to add a unique tag but I guess we could > extend this to something much smarter. I

Re: [FEATURE REQUEST]: post-processing on notmuch new

2010-11-25 Thread Xavier Maillard
On Thu, 25 Nov 2010 08:00:03 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: On Thu, 25 Nov 2010 00:30:45 -0500, Ben Gamari bgam...@gmail.com wrote: I, for one, simply have a get-mail script which calls offlineimap, notmuch new, and finally my sorting script. This seems like a more

Re: [FEATURE REQUEST]: post-processing on notmuch new

2010-11-25 Thread Sebastian Spaeth
On Thu, 25 Nov 2010 09:20:39 +0100, Xavier Maillard xav...@maillard.im wrote: On Thu, 25 Nov 2010 08:00:03 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: On Thu, 25 Nov 2010 00:30:45 -0500, Ben Gamari bgam...@gmail.com wrote: I, for one, simply have a get-mail script which calls

[PATCH 2/3] emacs: Fix Fcc generation.

2010-11-25 Thread David Edmondson
The previous code did not correctly identify an old configuration and, as a consequence, broke new configurations. Minor re-arrangement to assist testing. --- emacs/notmuch-maildir-fcc.el | 107 +- 1 files changed, 53 insertions(+), 54 deletions(-) diff

[PATCH 3/3] test: Add ERT tests for Fcc determination.

2010-11-25 Thread David Edmondson
Add ERT tests to cover various settings of `notmuch-fcc-dirs'. --- emacs/notmuch-test.el| 96 ++ test/emacs-ert | 17 ++ test/emacs.expected-output/emacs-ert |9 +++ 3 files changed, 122 insertions(+), 0

Re: C coding conventions for notmuch

2010-11-25 Thread Michal Sojka
On Wed, 24 Nov 2010, Daniel Kahn Gillmor wrote: On 11/24/2010 04:25 PM, Michal Sojka wrote: (c-cleanup-list . (space-before-funcall)) This line makes my emacs prompt that it may not be safe -- it seems impolite to ask users just opening up the code within emacs to execute

Re: [PATCH 1/3] test: Add ERT for emacs testing.

2010-11-25 Thread David Edmondson
On Thu, 25 Nov 2010 10:59:08 +, David Edmondson d...@dme.org wrote: ERT is for Emacs Lisp Regression Testing, from https://github.com/ohler/ert.git. The ERT files added here were extracted from the ERT repository. --- test/ert/ert-batch.el | 152 +++ test/ert/ert-run.el | 687

[PATCH] test: Add some more emacs tests.

2010-11-25 Thread David Edmondson
Simple version of the `notmuch-hello' test, some tests of the matrix reflection code and the 're:' stripping code. --- emacs/notmuch-test.el| 62 +++-- test/emacs-ert |3 ++ test/emacs.expected-output/emacs-ert | 20

Re: Inconsistent output from notmuch search --output=foo

2010-11-25 Thread Jameson Rollins
On Wed, 24 Nov 2010 11:40:46 -0800, Carl Worth cwo...@cworth.org wrote: So my inclination is to remove the prefixes and then recommend that you do: notmuch search --output=threads | sed -e 's/^/thread:' in your script. Hey, Carl. I think that's reasonable. jamie.

Re: Difference between search and filter

2010-11-25 Thread Xavier Maillard
Hi [I know I am really late on this one ;)] On Mon, 19 Apr 2010 18:16:53 -0700, Carl Worth cwo...@cworth.org wrote: On Tue, 20 Apr 2010 00:23:01 +0200, Xavier Maillard x...@gnu.org wrote: GNU Emacs interface comes with 2 functions I am not sure I am using correctly. What's the