Re: output file argument to notmuch dump.

2011-10-10 Thread David Bremner
On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner brem...@unb.ca wrote: I'd like to add a search term argument to notmuch dump (see id:87wrcijn1w.fsf@zancas.localnet and followup for context). The notmuch way would be to have notmuch dump search-term do the right thing Another

Re: [PATCH] NEWS: add notes about emacs improvements and reply formating cleanup

2011-10-10 Thread Thomas Schwinge
Hi! On Sat, 08 Oct 2011 20:55:59 -0700, Jameson Graef Rollins jroll...@finestructure.net wrote: Ok, I just realized why these messages aren't showing up in reply to the messages I intend: it's the id: prefix that's there when I use c i to copy the message ID to the kill-ring! I'm then

[PATCH] emacs: Modify notmuch-show-get-message-id to return message-id unprefixed with id:.

2011-10-10 Thread Jameson Graef Rollins
This modifies the notmuch-show c i binding to yank just the message-id to the kill-ring, without the id: prefix. This makes this yank binding consistent with the rest of the yank bindings in that they don't include any search term prefixes. This is a more natural interface and will cause less

Re: [PATCH] NEWS: add notes about emacs improvements and reply formating cleanup

2011-10-10 Thread Jameson Graef Rollins
On Sun, 09 Oct 2011 19:54:17 +0200, Thomas Schwinge tho...@schwinge.name wrote: Hmm, don't know. Of course, c f also doesn't stash From:Some One someone@some.where, but just Some One someone@some.where. On the other hand, the id:[Message ID] format has the advantage that it's directly

Re: output file argument to notmuch dump.

2011-10-10 Thread Tomi Ollila
On Fri 07 Oct 2011 20:22, Jameson Graef Rollins jroll...@finestructure.net writes: On Fri, 07 Oct 2011 14:15:39 +0300, Tomi Ollila tomi.oll...@iki.fi wrote: The option 2, i.e. optional --write (or -o|--output) should be available; someone may run notmuch without using environment that

[PATCH 1/2] python: add classes to wrap all notmuch_*_t types

2011-10-10 Thread Justus Winter
Signed-off-by: Justus Winter 4win...@informatik.uni-hamburg.de --- bindings/python/notmuch/globals.py | 38 +++- 1 files changed, 37 insertions(+), 1 deletions(-) diff --git a/bindings/python/notmuch/globals.py b/bindings/python/notmuch/globals.py index

[PATCH 2/2] python: annotate all calls into libnotmuch with types

2011-10-10 Thread Justus Winter
Add type information to the ctypes._FuncPtr wrappers and use the wrapper classes instead of c_void_p for pointers to notmuch_*_t. This enables the ctypes library to type check parameters being handed to functions from the notmuch library. Signed-off-by: Justus Winter

[PATCH v6 0/2] emacs: User-defined sections in notmuch-hello

2011-10-10 Thread Daniel Schoepe
Fixed that and rebased against master. ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

[PATCH v6 2/2] emacs: Tests for user-defined sections

2011-10-10 Thread Daniel Schoepe
From: Daniel Schoepe daniel.scho...@googlemail.com --- test/emacs | 37 test/emacs.expected-output/notmuch-hello |4 ++- .../notmuch-hello-new-section |4 ++ .../notmuch-hello-no-saved-searches

[PATCH v6 1/2] emacs: User-defined sections in notmuch-hello

2011-10-10 Thread Daniel Schoepe
From: Daniel Schoepe daniel.scho...@googlemail.com This patch makes the notmuch-hello screen fully customizable by allowing the user to add and remove arbitrary sections. It also provides some convenience functions for constructing sections, e.g. showing the unread message count for each tag.

Re: [PATCH] emacs: logically group def{custom,face}s

2011-10-10 Thread Daniel Schoepe
On Tue, 5 Jul 2011 20:33:00 +0200, Pieter Praet pie...@praet.org wrote: To allow for expansion whilst keeping everything tidy and organized, move all defcustom/defface variables to the following subgroups, defined in notmuch-lib.el: Since the customize page for notmuch is getting pretty

[no subject]

2011-10-10 Thread david
OK, here is my proposal to add search terms to notmuch dump. Most of the work is in argument processing. It would be nice if we could factor some of that out. 02be821 notmuch-dump: deprecate use of output file argument. 2b7781d test: all dump-restore tests should be working now 7a203d6

[PATCH 2/6] test: add tests for command line arguments to notmuch-dump

2011-10-10 Thread david
From: David Bremner brem...@debian.org The plan is to add the possibility of search terms after the file name, and the use of -- to stop looking for an output file name. --- test/dump-restore | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git

[PATCH 1/6] test: update dump-restore to use redirection instead of filename args

2011-10-10 Thread david
From: David Bremner brem...@debian.org The idea here is that we want to deprecate the use of arguments to dump and restore to specify paths, since in particular we want to use the non-option arguments to dump to form a query. --- test/dump-restore | 10 +- 1 files changed, 5

[PATCH 5/6] test: all dump-restore tests should be working now

2011-10-10 Thread david
From: David Bremner brem...@debian.org 3 x test_subtest_known_broken removed to tidy up the output. --- test/dump-restore |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/test/dump-restore b/test/dump-restore index 699337c..d8db259 100755 --- a/test/dump-restore +++

[PATCH 6/6] notmuch-dump: deprecate use of output file argument.

2011-10-10 Thread david
From: David Bremner brem...@debian.org We print an intentionally non-specific message on stderr, since it isn't clear if there will be some global output file argument to replace. We update the test suite atomically, since it relies on having the same text in two files. --- notmuch-dump.c|

[PATCH 4/6] notmuch-dump: treat any remaining arguments after the filename as search terms

2011-10-10 Thread david
From: David Bremner brem...@debian.org The main motivation here is allow the fast dumping of tag data for messages having certain tags. In practice it seems too slow to pipe dump to grep. --- notmuch-dump.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git

[PATCH 3/6] notmuch-dump: update handling of file name argument

2011-10-10 Thread david
From: David Bremner brem...@debian.org We permit -- as an option processing terminator. Currently this does not do anything useful, but we plan to add search terms after the --. --- notmuch-dump.c | 27 --- 1 files changed, 16 insertions(+), 11 deletions(-) diff --git

Re: output file argument to notmuch dump.

2011-10-10 Thread David Bremner
On Mon, 10 Oct 2011 16:59:06 +0300, Tomi Ollila tomi.oll...@iki.fi wrote: In this case there would be 2 transitional syntaxes. IMHO 'notmuch dump search-terms' causes least transitional pain. I don't understand what you mean here. Can you elaborate? notmuch dump search-terms is not

Re: emacs email appears empty

2011-10-10 Thread Brian May
On 29 September 2011 21:05, David Bremner da...@tethera.net wrote: Any chance you could share such a message with us? Unfortunately the emails with this problem are private, I probably shouldn't repost without getting permission first from the sender. I think it might be emails sent with Zimbra

Re: emacs email appears empty

2011-10-10 Thread David Bremner
On Tue, 11 Oct 2011 10:02:48 +1100, Brian May br...@microcomaustralia.com.au wrote: I also have attached an email with nothing but the signature. This email comes out completely blank without any option to see the signature. Not sure if this is expected or not. I can confirm the latter is a

Re: [PATCH] emacs: Modify notmuch-show-get-message-id to return message-id unprefixed with id:.

2011-10-10 Thread Thomas Schwinge
Hi! On Sun, 9 Oct 2011 15:35:48 -0700, Jameson Graef Rollins jroll...@finestructure.net wrote: (defun notmuch-show-get-message-id () Return the message id of the current message. - (concat id:\ (notmuch-show-get-prop :id) \)) + (concat \ (notmuch-show-get-prop :id) \)) Shouldn't the

Re: [PATCH 2/4] emacs: Support a message-mode switch function in notmuch-mua

2011-10-10 Thread Jameson Graef Rollins
Hey, Thomas. I think these are all totally reasonable emacs improvements, and I think we should merge them all. I particularly like this feature to launch compose buffers in new frames. Thanks so much for figuring it out. I had hacked up something for myself but your solution is *much* more

Re: output file argument to notmuch dump.

2011-10-10 Thread Jameson Graef Rollins
On Sun, 09 Oct 2011 13:01:53 -0300, David Bremner brem...@unb.ca wrote: Another option occured to me that is consistent at least with notmuch tag and notmuch show would be to support the following transitional syntaxes notmuch dump file notmuch dump file [--] search terms

Re: [PATCH 2/4] emacs: Support a message-mode switch function in notmuch-mua

2011-10-10 Thread Jameson Graef Rollins
Another question about this feature: how do you make the window (frame) go away after the email is sent? jamie. pgpQA9VQdtTm9.pgp Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org

Re: output file argument to notmuch dump.

2011-10-10 Thread David Bremner
On Mon, 10 Oct 2011 09:41:47 -0700, Jameson Graef Rollins jroll...@finestructure.net wrote: notmuch --stdout=foo.txt dump could be dealt with later. I realize the later probably requires more work, since we would have to replace all print calls with a new function, but I think it's

output file argument to notmuch dump.

2011-10-10 Thread Tomi Ollila
On Fri 07 Oct 2011 20:22, Jameson Graef Rollins writes: > On Fri, 07 Oct 2011 14:15:39 +0300, Tomi Ollila wrote: >> The option 2, i.e. optional --write (or -o|--output) should be available; >> someone may run notmuch without using environment that provides >> redirections (or it is just plain

[PATCH 1/2] python: add classes to wrap all notmuch_*_t types

2011-10-10 Thread Justus Winter
Signed-off-by: Justus Winter <4winter at informatik.uni-hamburg.de> --- bindings/python/notmuch/globals.py | 38 +++- 1 files changed, 37 insertions(+), 1 deletions(-) diff --git a/bindings/python/notmuch/globals.py b/bindings/python/notmuch/globals.py index

[PATCH 2/2] python: annotate all calls into libnotmuch with types

2011-10-10 Thread Justus Winter
Add type information to the ctypes._FuncPtr wrappers and use the wrapper classes instead of c_void_p for pointers to notmuch_*_t. This enables the ctypes library to type check parameters being handed to functions from the notmuch library. Signed-off-by: Justus Winter <4winter at

[PATCH v6 2/2] emacs: Tests for user-defined sections

2011-10-10 Thread Daniel Schoepe
From: Daniel Schoepe --- test/emacs | 37 test/emacs.expected-output/notmuch-hello |4 ++- .../notmuch-hello-new-section |4 ++

[PATCH v6 1/2] emacs: User-defined sections in notmuch-hello

2011-10-10 Thread Daniel Schoepe
From: Daniel Schoepe This patch makes the notmuch-hello screen fully customizable by allowing the user to add and remove arbitrary sections. It also provides some convenience functions for constructing sections, e.g. showing the unread message count for each tag.

[PATCH] emacs: logically group def{custom,face}s

2011-10-10 Thread Daniel Schoepe
, I think this patch is a good idea and should be applied. Cheers, Daniel -- 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/attachme

No subject

2011-10-10 Thread da...@tethera.net
OK, here is my proposal to add search terms to notmuch dump. Most of the work is in argument processing. It would be nice if we could factor some of that out. 02be821 notmuch-dump: deprecate use of output file argument. 2b7781d test: all dump-restore tests should be working now 7a203d6

[PATCH 1/6] test: update dump-restore to use redirection instead of filename args

2011-10-10 Thread da...@tethera.net
From: David Bremner The idea here is that we want to deprecate the use of arguments to dump and restore to specify paths, since in particular we want to use the non-option arguments to dump to form a query. --- test/dump-restore | 10 +- 1 files changed, 5

[PATCH 2/6] test: add tests for command line arguments to notmuch-dump

2011-10-10 Thread da...@tethera.net
From: David Bremner The plan is to add the possibility of search terms after the file name, and the use of -- to stop looking for an output file name. --- test/dump-restore | 28 1 files changed, 28 insertions(+), 0 deletions(-) diff --git

[PATCH 5/6] test: all dump-restore tests should be working now

2011-10-10 Thread da...@tethera.net
From: David Bremner 3 x test_subtest_known_broken removed to tidy up the output. --- test/dump-restore |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/test/dump-restore b/test/dump-restore index 699337c..d8db259 100755 --- a/test/dump-restore +++

[PATCH 6/6] notmuch-dump: deprecate use of output file argument.

2011-10-10 Thread da...@tethera.net
From: David Bremner We print an intentionally non-specific message on stderr, since it isn't clear if there will be some global output file argument to replace. We update the test suite atomically, since it relies on having the same text in two files. --- notmuch-dump.c

[PATCH 4/6] notmuch-dump: treat any remaining arguments after the filename as search terms

2011-10-10 Thread da...@tethera.net
From: David Bremner The main motivation here is allow the fast dumping of tag data for messages having certain tags. In practice it seems too slow to pipe dump to grep. --- notmuch-dump.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git

[PATCH 3/6] notmuch-dump: update handling of file name argument

2011-10-10 Thread da...@tethera.net
From: David Bremner We permit -- as an "option processing terminator". Currently this does not do anything useful, but we plan to add search terms after the --. --- notmuch-dump.c | 27 --- 1 files changed, 16 insertions(+), 11 deletions(-) diff

output file argument to notmuch dump.

2011-10-10 Thread Tomi Ollila
On Sun 09 Oct 2011 19:01, David Bremner writes: > On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner wrote: >> >> I'd like to add a search term argument to notmuch dump (see >> id:"87wrcijn1w.fsf at zancas.localnet" and followup for context). The >> "notmuch" way would be to have >> >>

output file argument to notmuch dump.

2011-10-10 Thread David Bremner
- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 315 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111010/2ddc6b15/attachment.pgp>

emacs email appears empty

2011-10-10 Thread David Bremner
On Tue, 11 Oct 2011 10:02:48 +1100, Brian May wrote: > I also have attached an email with nothing but the signature. This > email comes out completely blank without any option to see the > signature. Not sure if this is expected or not. > I can confirm the latter is a bug in 0.9~rc2 David

[PATCH 2/4] emacs: Support a message-mode switch function in notmuch-mua

2011-10-10 Thread Jameson Graef Rollins
amie. -- 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/20111010/f59eba06/attachment.pgp>

output file argument to notmuch dump.

2011-10-10 Thread Jameson Graef Rollins
. jamie. -- 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/20111010/103e3647/attachment.pgp>

[PATCH 2/4] emacs: Support a message-mode switch function in notmuch-mua

2011-10-10 Thread Jameson Graef Rollins
ttp://notmuchmail.org/pipermail/notmuch/attachments/20111010/184b49a7/attachment.pgp>