Re: [PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Matthieu Lemerre
I think you guys may have a misunderstanding about how notmuch indexes mail. Notmuch indexes multiple headers (To, From, Subject, Date) and the *entire* body of the message. That's kind of the whole point. In other words, messages don't have to have tags in order to be found. [...] Not

Re: [PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Jameson Rollins
On Sun, 14 Nov 2010 18:01:48 +0100, Matthieu Lemerre ra...@free.fr wrote: Now when you consistently label all your mails, you just don't want to have unclassified mails. That is what we meant by mail you can't find. It sounds like this would just as easily be accomplished with a way to search

Re: [PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Sebastian Spaeth
On Fri, 12 Nov 2010 10:33:33 -0500, Jameson Rollins wrote: I agree that the function currently bound to space bar is annoying. I am actually in the middle of preparing a patch to fix this. I think that space should just scroll through the open messages. I don't want it to archive anything,

Re: [PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Jameson Rollins
On Sun, 14 Nov 2010 22:07:03 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: This only works if you've already loaded notmuch, or you get error messages about notmuch-search-mode-map not being known. How do you deal with that or does it simply work for you? I have: (require 'notmuch) in

Re: [PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Matthieu Lemerre
On Sun, 14 Nov 2010 14:13:26 -0500, Jameson Rollins jroll...@finestructure.net wrote: On Sun, 14 Nov 2010 18:01:48 +0100, Matthieu Lemerre ra...@free.fr wrote: Now when you consistently label all your mails, you just don't want to have unclassified mails. That is what we meant by mail you

Re: [PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Sebastian Spaeth
On Sun, 14 Nov 2010 22:07:03 +0100, Sebastian Spaeth wrote: This only works if you've already loaded notmuch, or you get error messages about notmuch-search-mode-map not being known. How do you deal with that or does it simply work for you? DOH, nothing that a (require 'notmuch) couldn't fix.

Re: [PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Sebastian Spaeth
On Fri, 12 Nov 2010 17:35:22 +0100, Matthieu Lemerre ra...@free.fr wrote: But the space bar removes the unread tag, so I do not see how it helps... By default, hitting the space bar throughout a thread would remove every tag from the thread, so you keep asking where was the mail in my inbox

Re: [PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Michael Hudson
On Fri, 12 Nov 2010 16:23:58 +0100, Matthieu Lemerre ra...@free.fr wrote: - Processing mails which do not have any automatically added tag is boring, because I need to press several keys to archive them: + to add a tag, and then a. If I forget about +, then my mail is impossible to

Re: [PATCH] test: Better handling of stdout and stderr

2010-11-14 Thread Michal Sojka
On Thu, 11 Nov 2010, Carl Worth wrote: Oh, and one other thing I forgot to mention about the patch. It currently talks about things along the lines of git-style tests and cworth-style tests. You and I might understand perfectly well what that means now, but we need the test suite to be

[PATCH 3/5] test: Break on test script (or other) error

2010-11-14 Thread Michal Sojka
Break notmuch-test whenever a test script returns non-zero status. This happens either when some test from the script fails or when there is an error in the script. This is especially useful in the latter case since the error may not appear in the final aggregated results. --- test/notmuch-test

[PATCH 5/5] test: Fix bugs detected thanks to the previous commit

2010-11-14 Thread Michal Sojka
--- test/from-guessing |1 + test/search| 26 -- test/thread-naming |1 + 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/test/from-guessing b/test/from-guessing index 8de543f..6744e68 100755 --- a/test/from-guessing +++

Re: notmuchsync: handling of the deleted tag

2010-11-14 Thread Sebastian Spaeth
On Fri, 12 Nov 2010 16:52:51 -0800, Carl Worth wrote: On Fri, 12 Nov 2010 13:04:16 -0800, Dirk Hohndel hohn...@infradead.org wrote: Please don't! I use it all the time: Thanks :). This one is a simple one-liner as of notmuch 0.4: notmuch search --output=files tag:deleted -print0 |

Re: splittng threads [was: Re: Combining threads]

2010-11-14 Thread Michal Sojka
On Sat, 13 Nov 2010, Daniel Kahn Gillmor wrote: (hi list -- i'm new here; don't be afraid to explain things to me that seem obvious to you, or correct my vocabulary if i'm using it wrong) On 11/12/2010 08:11 PM, Carl Worth wrote: But I suppose it's as simple a matter of creating a new

Re: notmuchsync: handling of the deleted tag

2010-11-14 Thread Sebastian Spaeth
On Fri, 12 Nov 2010 13:16:53 -0800, Carl Worth wrote: [*] This is a point I'm not clear on. Would a tool like offlineimap be able to push custom filenames through to the remote end with standard imap servers? Not sure. If it worked this would be really nice. But as most IMAP server support

Re: [PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Matthieu Lemerre
On Sun, 14 Nov 2010 22:34:38 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: On Fri, 12 Nov 2010 17:35:22 +0100, Matthieu Lemerre ra...@free.fr wrote: But the space bar removes the unread tag, so I do not see how it helps... By default, hitting the space bar throughout a thread would

Re: Web archive (was: Combining threads)

2010-11-14 Thread Jameson Rollins
On Sun, 14 Nov 2010 23:21:26 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: Gmane is not good? I'm quite satisfied with the following in my .emacs: (defun notmuch-show-stash-gmane () Copy a link to gmane archive of the current message to kill-ring. (interactive)

Re: splittng threads [was: Re: Combining threads]

2010-11-14 Thread David Bremner
On Sun, 14 Nov 2010 23:24:09 +0100, Michal Sojka sojk...@fel.cvut.cz wrote: On Sat, 13 Nov 2010, Daniel Kahn Gillmor wrote: my current understanding is that a not-uncommon use case is to have two separate notmuch instances, synchronized by syncing maildirs and tagsets. Would such a

Re: notmuchsync: handling of the deleted tag

2010-11-14 Thread Jeff Richards
On Sun, 14 Nov 2010 23:21:41 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: This one is a simple one-liner as of notmuch 0.4: notmuch search --output=files tag:deleted -print0 | xargs -0 rm Having just switched from notmuchsync the synchronizing power of 0.5 and being as how I'm

Re: notmuchsync: handling of the deleted tag

2010-11-14 Thread Jameson Rollins
On Fri, 12 Nov 2010 16:52:51 -0800, Carl Worth cwo...@cworth.org wrote: This one is a simple one-liner as of notmuch 0.4: notmuch search --output=files tag:deleted -print0 | xargs -0 rm Is -print0 actually a command that notmuch accepts? It's not documented as far as I can tell. And it

Re: notmuchsync: handling of the deleted tag

2010-11-14 Thread Jameson Rollins
On Sun, 14 Nov 2010 17:23:57 -0800, Jeff Richards jricha...@revenuewire.com wrote: Having just switched from notmuchsync the synchronizing power of 0.5 and being as how I'm missing the pruning feature I gave this a try and found that I ended up with rm complaining that the file name length

[PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Matthieu Lemerre
> I think you guys may have a misunderstanding about how notmuch indexes > mail. Notmuch indexes multiple headers (To, From, Subject, Date) and > the *entire* body of the message. That's kind of the whole point. In > other words, messages don't have to have tags in order to be found. [...]

[PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Jameson Rollins
p magic is probably in order. 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/20101114/efbb2d68/attachment.pgp>

[PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Sebastian Spaeth
t was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20101114/8bc8ad8e/attachment.pgp>

[PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Jameson Rollins
nfig file before I add these keybinding. 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/20101114/276b144d/attachment.pgp>

[PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Matthieu Lemerre
On Sun, 14 Nov 2010 14:13:26 -0500, Jameson Rollins wrote: > On Sun, 14 Nov 2010 18:01:48 +0100, Matthieu Lemerre wrote: > > Now when you consistently label all your mails, you just don't want to > > have unclassified mails. That is what we meant by "mail you can't find". > > It sounds like

[PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Sebastian Spaeth
mail/notmuch/attachments/20101114/e0c234d4/attachment.pgp>

[PATCH] How to improve the mail handling workflow?

2010-11-14 Thread Sebastian Spaeth
t was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20101114/5ce93a85/attachment.pgp>

[PATCH] test: Better handling of stdout and stderr

2010-11-14 Thread Michal Sojka
On Thu, 11 Nov 2010, Carl Worth wrote: > Oh, and one other thing I forgot to mention about the patch. It > currently talks about things along the lines of "git-style tests" and > "cworth-style tests". > > You and I might understand perfectly well what that means now, but we > need the test suite

[PATCH 2/5] test: Add trailing newline to error messages

2010-11-14 Thread Michal Sojka
The newline was removed from say_color in commit 222926ab to allow printing test status in the beginning of the line. Error messages are never followed by other text so we add the newline to error function. --- test/test-lib.sh |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[PATCH 1/5] test: Better handling of stdout and stderr

2010-11-14 Thread Michal Sojka
Git-style tests (test_expect_success etc.) suppress stdout and stderr unless -v is given. Notmuch-style tests (created by test_begin_subtest and test_expect_equal) do not have this behavior so implement it the same. Additionally, for both test styles, the test-lib.sh is changed so that the

[PATCH 3/5] test: Break on test script (or other) error

2010-11-14 Thread Michal Sojka
Break notmuch-test whenever a test script returns non-zero status. This happens either when some test from the script fails or when there is an error in the script. This is especially useful in the latter case since the error may not appear in the final aggregated results. --- test/notmuch-test

[PATCH 4/5] test: Detect unfinished subsets

2010-11-14 Thread Michal Sojka
When test_begin_subtest is not followed by corresponding test_expect_equal, the output of the rest of the test script is errornously suppressed. Add code to detect these bugs in test scripts. --- test/test-lib.sh |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git

[PATCH 5/5] test: Fix bugs detected thanks to the previous commit

2010-11-14 Thread Michal Sojka
--- test/from-guessing |1 + test/search| 26 -- test/thread-naming |1 + 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/test/from-guessing b/test/from-guessing index 8de543f..6744e68 100755 --- a/test/from-guessing +++

[PATCH] emacs: add some convenience functions to show mode

2010-11-14 Thread Jameson Rollins
Adding three new conveneince functions: notmuch-show-next-open-message-or-pop notmuch-show-next-thread notmuch-show-previous-thread While these are not currently bound to any keys, I have found them to be very useful for constructing custom key bindings outside of what notmuch provides by

Web archive (was: Combining threads)

2010-11-14 Thread Michal Sojka
On Sat, 13 Nov 2010, Carl Worth wrote: > That was in this email: > > id:87vd4k6956.fsf at yoom.home.cworth.org > > And since we don't yet have a good web-based archive that lets you just > plug in message IDs, I'll quote my reply here: Gmane is not good? I'm quite satisfied with the

notmuchsync: handling of the deleted tag

2010-11-14 Thread Sebastian Spaeth
otmuchmail.org/pipermail/notmuch/attachments/20101114/2397bf37/attachment.pgp>

splittng threads [was: Re: Combining threads]

2010-11-14 Thread Michal Sojka
On Sat, 13 Nov 2010, Daniel Kahn Gillmor wrote: > (hi list -- i'm new here; don't be afraid to explain things to me that > seem obvious to you, or correct my vocabulary if i'm using it wrong) > > On 11/12/2010 08:11 PM, Carl Worth wrote: > > But I suppose it's as simple a matter of creating a new

notmuchsync: handling of the deleted tag

2010-11-14 Thread Sebastian Spaeth
ther (until I make it speak IMAP which I don't see coming in the near future) Sebastian -- 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/pipermai

notmuchsync: handling of the deleted tag

2010-11-14 Thread Jameson Rollins
http://notmuchmail.org/pipermail/notmuch/attachments/20101114/77369e77/attachment.pgp>

Web archive (was: Combining threads)

2010-11-14 Thread Jameson Rollins
uch-show-stash-gmane) 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/20101114/91191360/attachment.pgp>

splittng threads [was: Re: Combining threads]

2010-11-14 Thread David Bremner
On Sun, 14 Nov 2010 23:24:09 +0100, Michal Sojka wrote: > On Sat, 13 Nov 2010, Daniel Kahn Gillmor wrote: > > my current understanding is that a not-uncommon use case is to have two > > separate notmuch instances, synchronized by syncing maildirs and > > tagsets. Would such a thread-split be

notmuchsync: handling of the deleted tag

2010-11-14 Thread Jeff Richards
On Sun, 14 Nov 2010 23:21:41 +0100, Sebastian Spaeth wrote: > This one is a simple one-liner as of notmuch 0.4: > > > > notmuch search --output=files tag:deleted -print0 | xargs -0 rm > Having just switched from notmuchsync the synchronizing power of 0.5 and being as how I'm missing the

notmuchsync: handling of the deleted tag

2010-11-14 Thread Jameson Rollins
835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20101114/4ddd0927/attachment.pgp>

notmuchsync: handling of the deleted tag

2010-11-14 Thread Jameson Rollins
signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20101114/afefd02a/attachment.pgp>