Re: [notmuch] A functional (but rudimentary) test suite for notmuch

2010-02-08 Thread Michal Sojka
On Thursday 04 of February 2010 21:50:18 Carl Worth wrote: > The test suite is still extremely rudimentary. Here are some things I'd > like to improve about it: I converted the actual version of notmuch-test to git test framework. The result is in the followup patches. I'd like to know opinion of

[notmuch] [PATCH 1/3] Copy test framework from Git

2010-02-08 Thread Michal Sojka
ff-by: Michal Sojka --- test/Makefile | 46 +++ test/README | 297 + test/aggregate-results.sh | 34 ++ test/t-basic.sh | 368 + test/test-lib.sh | 787 + 5 files ch

[notmuch] [PATCH 3/3] Convert the actual tests to the new framework

2010-02-08 Thread Michal Sojka
of tests ./t0001-new.sh -v To not remove trash directory at the end: ./t0001-new.sh -d To run all tests verbosely: make make GIT_TEST_OPTS="-v" TODO: Convert GIT_* variables in test-lib.sh to NOTMUCH_* Signed-off-by: Michal Sojka --- test/notmuch-test| 542 -

[notmuch] [PATCH 2/3] Update test framework for use with notmuch

2010-02-08 Thread Michal Sojka
This removes Git specific things from the test-lib.sh and adds helper functions for notmuch taken from Carl's notmuch-test script. README is also slightly modified to reflect the current state. Signed-off-by: Michal Sojka --- test/Makefile |1 + test/README | 12 +-

Re: [notmuch] [PATCH] Switch from random to sequential thread identifiers.

2010-02-09 Thread Michal Sojka
ould also fix Sebastian's problem. 8< From afcc07ae03ae40cf7e1c33d8632fba0a9fc0b4c8 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 9 Feb 2010 15:35:39 +0100 Subject: [PATCH] Suppress warning on amd64 --- lib/database.cc |5 - 1 files changed, 4 insertions(+),

Re: [notmuch] Problems with Maildir and files moving from new/ to cur/

2010-02-09 Thread Michal Sojka
On Tue, 9 Feb 2010 10:38:04 -0500, Brett Viren wrote: > Hi, > > I use procmail to prefilter mail into various sub groups of a Maildir. > This Maildir is served by dovecot IMAP and is also visible to > notmuch. I run "notmuch new" followed by "notmuch tag -inbox -unread > tag:inbox" (I use GNUS

Re: [notmuch] emacs: On getting support for inline images

2010-02-10 Thread Michal Sojka
On Wed, 10 Feb 2010 12:54:52 -0800, Carl Worth wrote: > PS. I know that attaching the output of "git format-patch" to a message > like this isn't the "git way". (That is, you won't get the right result > by simply piping this message to "git am".) But I really wish it > were. It seems I often writ

[notmuch] Broken display of a message in emacs

2010-02-11 Thread Michal Sojka
Hi, recently, I got a message (attached) which is diplayed incorrectly in emacs GUI. Instead of the message I see direct output of notmuch show (with ^L characters). I wonder whether it is a porblem of notmuch or it is because the message does not comform to standards. What do you think? Michal

Re: [notmuch] A functional (but rudimentary) test suite for notmuch

2010-02-12 Thread Michal Sojka
On Thu, 11 Feb 2010 13:42:08 -0800, Carl Worth wrote: > Interesting. My only real concern at this point is that some of the new files > have a copyright header identifying Junio as the copyright holder, but > no license information. Meanwhile, the implicit license of git (GPLv2 > only) is incompat

Re: [notmuch] [PATCH 2/2] notmuch.el: add a submap (on "z" for "ztash") to stash things.

2010-02-12 Thread Michal Sojka
On Thu, 11 Feb 2010 23:01:08 -0400, da...@tethera.net wrote: > From: David Bremner > > Provide key bindings for stuffing various RFC822 header fields and other > metadata > into the emacs kill-ring as text. The bindings are as follows: > > z F notmuch-show-stash-filename > z T

Re: [notmuch] [PATCH] Reintroduce HTML inlining, with a much needed optimization

2010-02-12 Thread Michal Sojka
On Tue, 09 Feb 2010 18:18:38 -0800, Carl Worth wrote: > On Tue, 9 Feb 2010 17:55:21 -0800, Alexander Botero-Lowry > wrote: > > Now instead of requiring every single message be parsed, we now check > > the Content-type in the parsed headers and only do HTML inlining if it's > > text/html > > Ex

[notmuch] Using test-lib.sh under GPLv3?

2010-02-15 Thread Michal Sojka
Dear Junio, I like the simple and powerful test suite used by Git and I would like to use something like that in Notmuch project (http://notmuchmail.org/). Notmuch is licenced under GPLv3 and we think that things will be simpler if everything in the repository is licenced the same. You are mention

Re: [notmuch] Mail in git

2010-02-16 Thread Michal Sojka
Hi Stewart, On Mon, 15 Feb 2010 11:29:14 +1100, Stewart Smith wrote: > Which goes from a 15GB Maildir to a 3.7GB git repo. That's quite interesting ratio. I've tried a plain git add and git gc on my mail store and the result was a repo of approximately 50% of mail store size. Do you think that

Re: [notmuch] [PATCH] notmuch: Respect maildir message flags

2010-02-16 Thread Michal Sojka
On Tue, 16 Feb 2010 13:21:28 +1100, Stewart Smith wrote: > What about this patch (just with those few things fixed)? > > diff --git a/notmuch-new.c b/notmuch-new.c > index f25c71f..8303047 100644 > --- a/notmuch-new.c > +++ b/notmuch-new.c > @@ -39,6 +39,7 @@ typedef struct { > int total_fi

Re: [notmuch] [PATCH] notmuch.el: Colour cited regions and signatures with message-cited-text-face.

2010-02-16 Thread Michal Sojka
Nice, it works for me. On Mon, 15 Feb 2010 10:03:32 +, David Edmondson wrote: > This version is over-eager in marking (non-)signatures. The second call > to 'overlay-put' needs to move inside the 'if' a line below. Could you please send a fixed patch so that it can be applied easilly. Micha

Re: [notmuch] Using test-lib.sh under GPLv3?

2010-02-16 Thread Michal Sojka
On Tue, 16 Feb 2010 02:27:37 -0800 (PST), Jakub Narebski wrote: > Michal Sojka writes: > > > I like the simple and powerful test suite used by Git and I would like > > to use something like that in Notmuch project (http://notmuchmail.org/). > > [...] > > Have you

Re: [notmuch] Using test-lib.sh under GPLv3?

2010-02-19 Thread Michal Sojka
Dear Pierre, Johannes (2x) and Sverre, as you can read bellow, I'd like to use git's test-lib.sh in a GPLv3 project. Do you mind if I use your work in that file under GPLv3? Thanks Michal On Mon, 15 Feb 2010 09:39:28 +0100, Michal Sojka wrote: > Dear Junio, > > I like the

Re: [notmuch] nested tag trees (was: Mail in git)

2010-02-19 Thread Michal Sojka
On Fri, 19 Feb 2010 13:31:15 +1300, martin f krafft wrote: > also sprach Ben Gamari [2010.02.18.1810 +1300]: > > > Instead of nested subtrees, think of 16 subtrees forming > > > a level-1 hash table, or 256 for level-2, which really *ought* > > > to be enough. > > > > > > Anyway, rewriting a tre

Re: [notmuch] patch queue

2010-02-22 Thread Michal Sojka
On Sat, 20 Feb 2010 16:05:35 -0500, Jameson Rollins wrote: > I'm not at all trying to be pushy; there's just some older stuff in the > queue that I would really like to see applied, such as folder-based > tagging Hi, as for the folder-based tagging patch sent by myself, it needs some improvemen

Re: [notmuch] Introducing notmuchsync

2010-03-01 Thread Michal Sojka
On Wed, 24 Feb 2010 10:19:06 -0800, Carl Worth wrote: > Elsewhere in the thread Jameson Rollins wrote: > > I should have mentioned in my previous mail that I think this tool is > > a great idea, and I plan on using it. I just hope that all of it's > > functionality will be integrated directly int

Re: [notmuch] [PATCH] Support for deletion (patch included)

2010-03-01 Thread Michal Sojka
On Thu, 25 Feb 2010 01:00:04 +0100 (CET), ra...@free.fr wrote: > Hi Carl, > > > Could you also write a commit message describing what the patch does? > > The easiest way for me to apply that would be if you would create a git > > commit, then run "git format-patch origin/master" and mail the resul

Re: [notmuch] Thoughts on not seeing messages I can't deal with (yet, or now, or here...)

2010-03-01 Thread Michal Sojka
On Fri, 26 Feb 2010 12:00:06 -0800, Carl Worth wrote: > [This mail started as some off-topic rambling in my reply to the > notmuch-reply script. So that's why it starts on one topic and ends > somewhere else entirely.] > > I'm currently avoiding any locking failures with notmuch commands by > run

Re: [notmuch] What's so great about notmuch?

2010-03-01 Thread Michal Sojka
On Fri, 26 Feb 2010 12:08:49 -0800, Carl Worth wrote: >What's your favorite thing about notmuch? I can process my inbox in a linear fassion (by pressing space). During that, I'm not distracted by various GUI elements, which remind me how many other emails I have to read. I can fully concentra

Re: [notmuch] Introducing notmuchsync

2010-03-01 Thread Michal Sojka
On Mon, 01 Mar 2010 11:27:07 -0500, Ben Gamari wrote: > > 2. get the list of new mails which need to be indexed > >(current notmuch does recursive file traversal, for git-based store > >it will be something like system("git diff-tree --name-status ...") > > > Is this really necessary? Anot

[notmuch] [PATCH 2/2] Emacs code for replying only to sender (bound to 'R' key)

2010-03-01 Thread Michal Sojka
This is probably a very stupid implementation. I do not know elisp well, so I appreciate advises on how to avoid code duplication. Signed-off-by: Michal Sojka --- notmuch.el | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/notmuch.el b/notmuch.el index

[notmuch] [PATCH 1/2] Allow replying only to sender

2010-03-01 Thread Michal Sojka
This adds --sender-only option to reply command, which makes the reply go only to the original sender. Signed-off-by: Michal Sojka --- notmuch-reply.c |9 +++-- notmuch.1 |6 ++ notmuch.c |3 +++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a

Re: [notmuch] Introducing notmuchsync

2010-03-01 Thread Michal Sojka
On Mon, 01 Mar 2010 13:43:24 -0500, Ben Gamari wrote: > Excerpts from Michal Sojka's message of Mon Mar 01 12:18:55 -0500 2010: > > > How do you propose that the backends keep track of what mail has been > > > indexed? > > > > For example by using Xapian metadata: > > notmuch->xapian_db->set_meta

Re: [notmuch] [PATCH] notmuch-reply: Use a shorter 'On, X Y wrote:' line

2010-03-02 Thread Michal Sojka
On Tue, 2 Mar 2010 13:37:42 +0100, Sebastian Spaeth wrote: > Previously, we would output: > 'On Thu, 25 Feb 2010 14:32:54 +0100, Sebastian Spaeth > wrote:' now it is: > 'On 2010-02-25, Sebastian Spaeth wrote:' > > In case we don't find a '<' (as indicator for 'Realname '), we still > use the

Re: [notmuch] [PATCH] notmuch-reply: Use a shorter 'On, X Y wrote:' line

2010-03-02 Thread Michal Sojka
On Tue, 2 Mar 2010 15:01:58 +0100, martin f krafft wrote: > also sprach Sebastian Spaeth [2010.03.02.1337 +0100]: > > Previously, we would output: 'On Thu, 25 Feb 2010 14:32:54 +0100, > > Sebastian Spaeth wrote:' now it is: 'On > > 2010-02-25, Sebastian Spaeth wrote:' > > > > In case we don't f

[notmuch] [PATCH] Decode headers in reply

2010-03-02 Thread Michal Sojka
Re: =?iso-8859-2?q?Rozlu=E8ka?=". This patch adds a new GMime filter which is used to decode headers to UTF-8 and uses this filter when notmuch reply outputs headers. Signed-off-by: Michal Sojka --- I tested this patch with valgrind to debug some invalid writes in an earlier version of the

Re: [notmuch] [PATCH] notmuch-reply: Use a shorter 'On, X Y wrote:' line

2010-03-04 Thread Michal Sojka
ate"), > - notmuch_message_get_header (message, "from")); > + datestr, > + short_from); The second problem is that the value of from_addr doesn't (always?) contain sender's addres. When I wanded to reply to this email with you pat

Re: [notmuch] Debian package

2010-03-05 Thread Michal Sojka
On Fri, 05 Mar 2010, Xavier Maillard wrote: > Hi, > > I am using Debian GNU/linux SID and notmuch and I'd like to be > bleading edge with notmuch. So I am trying to figure out whether > someone is maintaining a Debian package against notmuch git > repository or not. If the former, that's nice. Hi

Re: [notmuch] Debian package

2010-03-08 Thread Michal Sojka
On Sun, 07 Mar 2010, Xavier Maillard wrote: > There are probably things to tweak but there is also something > not working for me. Apparentely, you have a special file named > 'version' in which you store a version string and its sha1 as > taken from the rev HEAD. I do not have one and thus, I can'

Re: [notmuch] [PATCH -V3 1/2] notmuch-reply: Add support for replying only to sender

2010-03-11 Thread Michal Sojka
Hi, On Wed, 10 Mar 2010, Aneesh Kumar K.V wrote: > From: Aneesh Kumar K.V > > This patch add --recipient=all|sender option > > Signed-off-by: Aneesh Kumar K.V > --- > notmuch-client.h |2 + > notmuch-reply.c | 55 - > 2 files changed,

Re: [notmuch] [PATCH] Change From and Bcc when creating reply draft buffer

2010-03-11 Thread Michal Sojka
Hi James, On Tue, 09 Mar 2010, James Vasile wrote: > When notmuch creates a reply buffer, it guesses the From and Bcc > addresses. The client is in a better position to guess these, and this > patch adjusts notmuch-reply accordingly. > > diff --git a/notmuch.el b/notmuch.el > index ab56f48..07f9

Re: [notmuch] [PATCH] Change From and Bcc when creating reply draft buffer

2010-03-11 Thread Michal Sojka
On Thu, 11 Mar 2010, James Vasile wrote: > On Thu, 11 Mar 2010 14:00:08 +0100, Michal Sojka wrote: > > Hi James, > > > > On Tue, 09 Mar 2010, James Vasile wrote: > > > When notmuch creates a reply buffer, it guesses the From and Bcc > > > addresses. The

Re: [notmuch] [PATCH] Change From and Bcc when creating reply draft buffer

2010-03-11 Thread Michal Sojka
On Thu, 11 Mar 2010, James Vasile wrote: > On Thu, 11 Mar 2010 17:22:41 +0100, Michal Sojka wrote: > > thanks for clarification. It all sounds reasonable. The only problem I > > can see now is that if I create a new account on my machine and run > > emacs there, then t

Re: [notmuch] Notmuch command interface

2010-03-12 Thread Michal Sojka
On Thu, 11 Mar 2010, David A Benjamin wrote: > On Thu, 11 Mar 2010, Ben Gamari wrote: > > While the notmuch command-line interface is fantastic, there defintely are > > a few > > gaps which hurt performance. Since I've been following, I've seen several > > threads on how to handle message addition

Re: [notmuch] Notmuch command interface

2010-03-12 Thread Michal Sojka
On Fri, 12 Mar 2010, Sebastian Spaeth wrote: > > Unfortunately, I didn't make much progress in implementating this, but > > it's definitely a priority for me because I want to get rid of slow > > notmuchsync. > > notmuchsync master is now using the json output, by the way. I think > that suppressi

Re: [notmuch] Notmuch command interface

2010-03-14 Thread Michal Sojka
On Fri, 12 Mar 2010 17:03:04 +0100, "Sebastian Spaeth" wrote: > On Fri, 12 Mar 2010 16:03:34 +0100, Michal Sojka wrote: > > On Fri, 12 Mar 2010, Sebastian Spaeth wrote: > > > > Unfortunately, I didn't make much progress in implementating this, but >

[notmuch] [PATCH] Produce valid JSON output even if mail body is empty

2010-03-14 Thread Michal Sojka
Mails with empty body produced the following output: "body": [{"id": 1, "content-type": "text/plain", "content": (null)}] The (null) is not valid JSON syntax. This patch changes the output to: "body": [{"id": 1, &quo

[notmuch] [PATCH] Fix invalid JSON output for NULL strings

2010-03-14 Thread Michal Sojka
On Sun, 14 Mar 2010 15:01:28 -0400, James Westby wrote: > On Sun, 14 Mar 2010 19:19:11 +0100, Michal Sojka wrote: > > Mails with empty body produced the following output: > > "body": [{"id": 1, "content-type": "text/plain", "content

Re: [notmuch] [PATCH] To use compose-mail and mail-citation-hook

2010-03-18 Thread Michal Sojka
On Tue, 16 Mar 2010, Sandra Snan wrote: > Emacs has an interface called compose-mail which uses whatever mailing > mode that you’ve selected in mail-user-agent so if you like the > message mode that’s been hard-coded into notmuch.el, (setq > mail-user-agent 'message-user-agent) and this will use th

Re: [notmuch] Tag search peculiarities

2010-03-18 Thread Michal Sojka
On Wed, 17 Mar 2010, Ben Gamari wrote: > While trying perfect my initial tagging script, I have run into a very strange > set of issue. In my script, I use the following to exclude mailing list > traffic > from my inbox, > > notmuch tag -new tag:new and tag:list notmuch tag -new +inbox tag:new >

[notmuch] Mailstore abstraction & maildir synchronization

2010-03-18 Thread Michal Sojka
Hi all, I've finally found some time to implement the mailstore abstraction was initially described in id:87ljecmnbd@steelpick.localdomain and id:87eijqlz54@steelpick.localdomain. The idea is to allow notmuch operate on different types of mail storage (e.g. mail in git repositories) and t

[notmuch] [PATCH 3/4] Add maildir-based mailstore

2010-03-18 Thread Michal Sojka
name for the file. This mailstore is enabled by putting [mailstore] type=maildir to your .notmuch-config. Signed-off-by: Michal Sojka --- lib/database.cc |7 ++ lib/mailstore-files.c | 167 - lib/mailstore.c |1 + lib

[notmuch] [PATCH 1/4] Mailstore abstraction interface

2010-03-18 Thread Michal Sojka
ue of this option is the plain-file mailstore currently implemented in notmuch. Signed-off-by: Michal Sojka --- lib/Makefile.local |2 + lib/database-private.h |1 + lib/database.cc | 15 ++-- lib/mailstore-files.c | 43 lib/mailstore-privat

[notmuch] [PATCH 4/4] Tests for maildir-based mailstore

2010-03-18 Thread Michal Sojka
Signed-off-by: Michal Sojka --- test/t0006-maildir.sh | 113 + test/test-lib.sh |7 ++- 2 files changed, 118 insertions(+), 2 deletions(-) create mode 100755 test/t0006-maildir.sh diff --git a/test/t0006-maildir.sh b/test/t0006

[notmuch] [PATCH 2/4] Convert mailstore abstraction

2010-03-18 Thread Michal Sojka
library. Signed-off-by: Michal Sojka --- lib/mailstore-files.c | 590 +++ notmuch-new.c | 611 ++--- 2 files changed, 615 insertions(+), 586 deletions(-) diff --git a/lib/mailstore-files.c b/lib

[notmuch] emacs: On getting support for inline images

2010-02-11 Thread Michal Sojka
On Wed, 10 Feb 2010 12:54:52 -0800, Carl Worth wrote: > PS. I know that attaching the output of "git format-patch" to a message > like this isn't the "git way". (That is, you won't get the right result > by simply piping this message to "git am".) But I really wish it > were. It seems I often writ

[notmuch] Broken display of a message in emacs

2010-02-11 Thread Michal Sojka
Hi, recently, I got a message (attached) which is diplayed incorrectly in emacs GUI. Instead of the message I see direct output of notmuch show (with ^L characters). I wonder whether it is a porblem of notmuch or it is because the message does not comform to standards. What do you think? Michal

[notmuch] A functional (but rudimentary) test suite for notmuch

2010-02-12 Thread Michal Sojka
On Thu, 11 Feb 2010 13:42:08 -0800, Carl Worth wrote: > Interesting. My only real concern at this point is that some of the new files > have a copyright header identifying Junio as the copyright holder, but > no license information. Meanwhile, the implicit license of git (GPLv2 > only) is incompat

[notmuch] [PATCH 2/2] notmuch.el: add a submap (on "z" for "ztash") to stash things.

2010-02-12 Thread Michal Sojka
On Thu, 11 Feb 2010 23:01:08 -0400, david at tethera.net wrote: > From: David Bremner > > Provide key bindings for stuffing various RFC822 header fields and other > metadata > into the emacs kill-ring as text. The bindings are as follows: > > z F notmuch-show-stash-filename > z T

[notmuch] [PATCH] Reintroduce HTML inlining, with a much needed optimization

2010-02-12 Thread Michal Sojka
On Tue, 09 Feb 2010 18:18:38 -0800, Carl Worth wrote: > On Tue, 9 Feb 2010 17:55:21 -0800, Alexander Botero-Lowry at gmail.com> wrote: > > Now instead of requiring every single message be parsed, we now check > > the Content-type in the parsed headers and only do HTML inlining if it's > > text/h

[notmuch] Using test-lib.sh under GPLv3?

2010-02-15 Thread Michal Sojka
Dear Junio, I like the simple and powerful test suite used by Git and I would like to use something like that in Notmuch project (http://notmuchmail.org/). Notmuch is licenced under GPLv3 and we think that things will be simpler if everything in the repository is licenced the same. You are mention

[notmuch] Mail in git

2010-02-16 Thread Michal Sojka
Hi Stewart, On Mon, 15 Feb 2010 11:29:14 +1100, Stewart Smith wrote: > Which goes from a 15GB Maildir to a 3.7GB git repo. That's quite interesting ratio. I've tried a plain git add and git gc on my mail store and the result was a repo of approximately 50% of mail store size. Do you think that

[notmuch] [PATCH] notmuch: Respect maildir message flags

2010-02-16 Thread Michal Sojka
On Tue, 16 Feb 2010 13:21:28 +1100, Stewart Smith wrote: > What about this patch (just with those few things fixed)? > > diff --git a/notmuch-new.c b/notmuch-new.c > index f25c71f..8303047 100644 > --- a/notmuch-new.c > +++ b/notmuch-new.c > @@ -39,6 +39,7 @@ typedef struct { > int total_fi

[notmuch] [PATCH] notmuch.el: Colour cited regions and signatures with message-cited-text-face.

2010-02-16 Thread Michal Sojka
Nice, it works for me. On Mon, 15 Feb 2010 10:03:32 +, David Edmondson wrote: > This version is over-eager in marking (non-)signatures. The second call > to 'overlay-put' needs to move inside the 'if' a line below. Could you please send a fixed patch so that it can be applied easilly. Micha

[notmuch] Using test-lib.sh under GPLv3?

2010-02-16 Thread Michal Sojka
On Tue, 16 Feb 2010 02:27:37 -0800 (PST), Jakub Narebski wrote: > Michal Sojka writes: > > > I like the simple and powerful test suite used by Git and I would like > > to use something like that in Notmuch project (http://notmuchmail.org/). > > [...] > > Have you

[notmuch] Using test-lib.sh under GPLv3?

2010-02-19 Thread Michal Sojka
Dear Pierre, Johannes (2x) and Sverre, as you can read bellow, I'd like to use git's test-lib.sh in a GPLv3 project. Do you mind if I use your work in that file under GPLv3? Thanks Michal On Mon, 15 Feb 2010 09:39:28 +0100, Michal Sojka wrote: > Dear Junio, > > I like the

[notmuch] nested tag trees (was: Mail in git)

2010-02-19 Thread Michal Sojka
On Fri, 19 Feb 2010 13:31:15 +1300, martin f krafft wrote: > also sprach Ben Gamari [2010.02.18.1810 +1300]: > > > Instead of nested subtrees, think of 16 subtrees forming > > > a level-1 hash table, or 256 for level-2, which really *ought* > > > to be enough. > > > > > > Anyway, rewriting a tr

[notmuch] patch queue

2010-02-22 Thread Michal Sojka
On Sat, 20 Feb 2010 16:05:35 -0500, Jameson Rollins wrote: > I'm not at all trying to be pushy; there's just some older stuff in the > queue that I would really like to see applied, such as folder-based > tagging Hi, as for the folder-based tagging patch sent by myself, it needs some improvement

[notmuch] Introducing notmuchsync

2010-03-01 Thread Michal Sojka
On Wed, 24 Feb 2010 10:19:06 -0800, Carl Worth wrote: > Elsewhere in the thread Jameson Rollins wrote: > > I should have mentioned in my previous mail that I think this tool is > > a great idea, and I plan on using it. I just hope that all of it's > > functionality will be integrated directly int

[notmuch] [PATCH] Support for deletion (patch included)

2010-03-01 Thread Michal Sojka
On Thu, 25 Feb 2010 01:00:04 +0100 (CET), racin at free.fr wrote: > Hi Carl, > > > Could you also write a commit message describing what the patch does? > > The easiest way for me to apply that would be if you would create a git > > commit, then run "git format-patch origin/master" and mail the re

[notmuch] Thoughts on not seeing messages I can't deal with (yet, or now, or here...)

2010-03-01 Thread Michal Sojka
On Fri, 26 Feb 2010 12:00:06 -0800, Carl Worth wrote: > [This mail started as some off-topic rambling in my reply to the > notmuch-reply script. So that's why it starts on one topic and ends > somewhere else entirely.] > > I'm currently avoiding any locking failures with notmuch commands by > run

[notmuch] What's so great about notmuch?

2010-03-01 Thread Michal Sojka
On Fri, 26 Feb 2010 12:08:49 -0800, Carl Worth wrote: >What's your favorite thing about notmuch? I can process my inbox in a linear fassion (by pressing space). During that, I'm not distracted by various GUI elements, which remind me how many other emails I have to read. I can fully concentra

[notmuch] Introducing notmuchsync

2010-03-01 Thread Michal Sojka
On Mon, 01 Mar 2010 11:27:07 -0500, Ben Gamari wrote: > > 2. get the list of new mails which need to be indexed > >(current notmuch does recursive file traversal, for git-based store > >it will be something like system("git diff-tree --name-status ...") > > > Is this really necessary? Anot

[notmuch] [PATCH 2/2] Emacs code for replying only to sender (bound to 'R' key)

2010-03-01 Thread Michal Sojka
This is probably a very stupid implementation. I do not know elisp well, so I appreciate advises on how to avoid code duplication. Signed-off-by: Michal Sojka --- notmuch.el | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/notmuch.el b/notmuch.el index

[notmuch] [PATCH 1/2] Allow replying only to sender

2010-03-01 Thread Michal Sojka
This adds --sender-only option to reply command, which makes the reply go only to the original sender. Signed-off-by: Michal Sojka --- notmuch-reply.c |9 +++-- notmuch.1 |6 ++ notmuch.c |3 +++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a

[notmuch] Introducing notmuchsync

2010-03-01 Thread Michal Sojka
On Mon, 01 Mar 2010 13:43:24 -0500, Ben Gamari wrote: > Excerpts from Michal Sojka's message of Mon Mar 01 12:18:55 -0500 2010: > > > How do you propose that the backends keep track of what mail has been > > > indexed? > > > > For example by using Xapian metadata: > > notmuch->xapian_db->set_meta

[notmuch] [PATCH] notmuch-reply: Use a shorter 'On, X Y wrote:' line

2010-03-03 Thread Michal Sojka
On Tue, 2 Mar 2010 13:37:42 +0100, Sebastian Spaeth wrote: > Previously, we would output: > 'On Thu, 25 Feb 2010 14:32:54 +0100, Sebastian Spaeth SSpaeth.de> wrote:' now it is: > 'On 2010-02-25, Sebastian Spaeth wrote:' > > In case we don't find a '<' (as indicator for 'Realname '), we still

[notmuch] [PATCH] notmuch-reply: Use a shorter 'On, X Y wrote:' line

2010-03-03 Thread Michal Sojka
On Tue, 2 Mar 2010 15:01:58 +0100, martin f krafft wrote: > also sprach Sebastian Spaeth [2010.03.02.1337 > +0100]: > > Previously, we would output: 'On Thu, 25 Feb 2010 14:32:54 +0100, > > Sebastian Spaeth wrote:' now it is: 'On > > 2010-02-25, Sebastian Spaeth wrote:' > > > > In case we don

[notmuch] [PATCH] Decode headers in reply

2010-03-03 Thread Michal Sojka
Re: =?iso-8859-2?q?Rozlu=E8ka?=". This patch adds a new GMime filter which is used to decode headers to UTF-8 and uses this filter when notmuch reply outputs headers. Signed-off-by: Michal Sojka --- I tested this patch with valgrind to debug some invalid writes in an earlier version of the

[notmuch] [PATCH] notmuch-reply: Use a shorter 'On, X Y wrote:' line

2010-03-04 Thread Michal Sojka
"date"), > - notmuch_message_get_header (message, "from")); > + datestr, > + short_from); The second problem is that the value of from_addr doesn't (always?) contain sender's addres. When I wanded to reply to this email wit

[notmuch] Debian package

2010-03-05 Thread Michal Sojka
On Fri, 05 Mar 2010, Xavier Maillard wrote: > Hi, > > I am using Debian GNU/linux SID and notmuch and I'd like to be > bleading edge with notmuch. So I am trying to figure out whether > someone is maintaining a Debian package against notmuch git > repository or not. If the former, that's nice. Hi

[notmuch] Debian package

2010-03-08 Thread Michal Sojka
On Sun, 07 Mar 2010, Xavier Maillard wrote: > There are probably things to tweak but there is also something > not working for me. Apparentely, you have a special file named > 'version' in which you store a version string and its sha1 as > taken from the rev HEAD. I do not have one and thus, I can'

[notmuch] [PATCH -V3 1/2] notmuch-reply: Add support for replying only to sender

2010-03-11 Thread Michal Sojka
Hi, On Wed, 10 Mar 2010, Aneesh Kumar K.V wrote: > From: Aneesh Kumar K.V > > This patch add --recipient=all|sender option > > Signed-off-by: Aneesh Kumar K.V > --- > notmuch-client.h |2 + > notmuch-reply.c | 55 - > 2 files changed,

[notmuch] [PATCH] Change From and Bcc when creating reply draft buffer

2010-03-11 Thread Michal Sojka
Hi James, On Tue, 09 Mar 2010, James Vasile wrote: > When notmuch creates a reply buffer, it guesses the From and Bcc > addresses. The client is in a better position to guess these, and this > patch adjusts notmuch-reply accordingly. > > diff --git a/notmuch.el b/notmuch.el > index ab56f48..07f9

[notmuch] [PATCH] Change From and Bcc when creating reply draft buffer

2010-03-11 Thread Michal Sojka
On Thu, 11 Mar 2010, James Vasile wrote: > On Thu, 11 Mar 2010 14:00:08 +0100, Michal Sojka > wrote: > > Hi James, > > > > On Tue, 09 Mar 2010, James Vasile wrote: > > > When notmuch creates a reply buffer, it guesses the From and Bcc > > > address

[notmuch] [PATCH] Change From and Bcc when creating reply draft buffer

2010-03-12 Thread Michal Sojka
On Thu, 11 Mar 2010, James Vasile wrote: > On Thu, 11 Mar 2010 17:22:41 +0100, Michal Sojka > wrote: > > thanks for clarification. It all sounds reasonable. The only problem I > > can see now is that if I create a new account on my machine and run > > emacs there, the

[notmuch] Notmuch command interface

2010-03-12 Thread Michal Sojka
On Thu, 11 Mar 2010, David A Benjamin wrote: > On Thu, 11 Mar 2010, Ben Gamari wrote: > > While the notmuch command-line interface is fantastic, there defintely are > > a few > > gaps which hurt performance. Since I've been following, I've seen several > > threads on how to handle message addition

[notmuch] Notmuch command interface

2010-03-12 Thread Michal Sojka
On Fri, 12 Mar 2010, Sebastian Spaeth wrote: > > Unfortunately, I didn't make much progress in implementating this, but > > it's definitely a priority for me because I want to get rid of slow > > notmuchsync. > > notmuchsync master is now using the json output, by the way. I think > that suppressi

[notmuch] Notmuch command interface

2010-03-14 Thread Michal Sojka
On Fri, 12 Mar 2010 17:03:04 +0100, "Sebastian Spaeth" wrote: > On Fri, 12 Mar 2010 16:03:34 +0100, Michal Sojka > wrote: > > On Fri, 12 Mar 2010, Sebastian Spaeth wrote: > > > > Unfortunately, I didn't make much progress in implementating this, but &g

[notmuch] [PATCH] Produce valid JSON output even if mail body is empty

2010-03-14 Thread Michal Sojka
Mails with empty body produced the following output: "body": [{"id": 1, "content-type": "text/plain", "content": (null)}] The (null) is not valid JSON syntax. This patch changes the output to: "body": [{"id": 1, &quo

[notmuch] [PATCH] Fix invalid JSON output for NULL strings

2010-03-14 Thread Michal Sojka
On Sun, 14 Mar 2010 15:01:28 -0400, James Westby wrote: > On Sun, 14 Mar 2010 19:19:11 +0100, Michal Sojka > wrote: > > Mails with empty body produced the following output: > > "body": [{"id": 1, "content-type": "text/plain", &

[notmuch] [PATCH] To use compose-mail and mail-citation-hook

2010-03-18 Thread Michal Sojka
On Tue, 16 Mar 2010, Sandra Snan wrote: > Emacs has an interface called compose-mail which uses whatever mailing > mode that you?ve selected in mail-user-agent so if you like the > message mode that?s been hard-coded into notmuch.el, (setq > mail-user-agent 'message-user-agent) and this will use th

[notmuch] Tag search peculiarities

2010-03-18 Thread Michal Sojka
On Wed, 17 Mar 2010, Ben Gamari wrote: > While trying perfect my initial tagging script, I have run into a very strange > set of issue. In my script, I use the following to exclude mailing list > traffic > from my inbox, > > notmuch tag -new tag:new and tag:list notmuch tag -new +inbox tag:new >

[notmuch] Mailstore abstraction & maildir synchronization

2010-03-18 Thread Michal Sojka
Hi all, I've finally found some time to implement the mailstore abstraction was initially described in id:87ljecmnbd.fsf at steelpick.localdomain and id:87eijqlz54.fsf at steelpick.localdomain. The idea is to allow notmuch operate on different types of mail storage (e.g. mail in git repositories)

[notmuch] [PATCH 3/4] Add maildir-based mailstore

2010-03-18 Thread Michal Sojka
name for the file. This mailstore is enabled by putting [mailstore] type=maildir to your .notmuch-config. Signed-off-by: Michal Sojka --- lib/database.cc |7 ++ lib/mailstore-files.c | 167 - lib/mailstore.c |1 + lib

[notmuch] [PATCH 1/4] Mailstore abstraction interface

2010-03-18 Thread Michal Sojka
ue of this option is the plain-file mailstore currently implemented in notmuch. Signed-off-by: Michal Sojka --- lib/Makefile.local |2 + lib/database-private.h |1 + lib/database.cc | 15 ++-- lib/mailstore-files.c | 43 lib/mailstore-privat

[notmuch] [PATCH 4/4] Tests for maildir-based mailstore

2010-03-18 Thread Michal Sojka
Signed-off-by: Michal Sojka --- test/t0006-maildir.sh | 113 + test/test-lib.sh |7 ++- 2 files changed, 118 insertions(+), 2 deletions(-) create mode 100755 test/t0006-maildir.sh diff --git a/test/t0006-maildir.sh b/test/t0006

[notmuch] [PATCH 2/4] Convert mailstore abstraction

2010-03-18 Thread Michal Sojka
library. Signed-off-by: Michal Sojka --- lib/mailstore-files.c | 590 +++ notmuch-new.c | 611 ++--- 2 files changed, 615 insertions(+), 586 deletions(-) diff --git a/lib/mailstore-files.c b/lib

[notmuch] Using notmuch as an address book for tab-completion

2010-03-22 Thread Michal Sojka
On Sun, 21 Mar 2010, Sebastian Spaeth wrote: > That reminds me that there is still no installation tool for cnotmuch at > all. I'll have to have a look into that. Hi, I have also a silly question :) Why did you call it cnotmuch? I'd expect such a thing to be called pynotmuch or similar. When I saw

[notmuch] [PATCH] notmuch-new: Parse some maildir flags for labels

2010-03-22 Thread Michal Sojka
On Thu, 18 Mar 2010, Emil Sit wrote: > Instead of blanket applying tag:inbox and tag:unread to > all messages, when parsing a Maildir file, attempt to > parse the flags encoded in the filename to determine whether > to mark something as unread (and inbox). Also, parse user > flagged messages and t

[notmuch] [PATCH 3/4] Add maildir-based mailstore

2010-03-23 Thread Michal Sojka
On Tue, 23 Mar 2010, Ruben Pollan wrote: > On 16:39, Thu 18 Mar 10, Michal Sojka wrote: > > This mailstore allows bi-directional synchronization between maildir > > flags and certain tags. The flag-to-tag mapping is defined by flag2tag > > array. > > I'm trying

[notmuch] [PATCH 4/4] Tests for maildir-based mailstore

2010-03-23 Thread Michal Sojka
On Tue, 23 Mar 2010, Ruben Pollan wrote: > On 16:39, Thu 18 Mar 10, Michal Sojka wrote: > > Signed-off-by: Michal Sojka > > --- > > test/t0006-maildir.sh | 113 > > + > > test/test-lib.sh |7 ++- > >

[notmuch] [PATCH] Prevent data loss caused by SIGINT during notmuch new

2010-03-26 Thread Michal Sojka
When Ctrl-C is pressed in a wrong time during notmuch new, it can lead to removal of messages from the database even if the files were not removed. It happened at least once to me. Signed-off-by: Michal Sojka --- notmuch-new.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff

[notmuch] [PATCH 3/4] Add maildir-based mailstore

2010-03-26 Thread Michal Sojka
On Tue, 23 Mar 2010, Ruben Pollan wrote: > On 14:35, Tue 23 Mar 10, Michal Sojka wrote: > > Yes, that's a bug. Messages in your mail_folder/new probably don't have > > any 'info' (flags) in their filename, which is correct with respect to > > htt

[notmuch] [PATCH v2 3/4] Add maildir-based mailstore

2010-03-26 Thread Michal Sojka
l store again. This mailstore is enabled by putting the following to your .notmuch-config: [mailstore] type=maildir Signed-off-by: Michal Sojka --- lib/database.cc |7 ++ lib/mailstore-files.c | 203 - lib/mailstore.c |

[notmuch] [PATCH v2 1/4] Mailstore abstraction interface

2010-03-26 Thread Michal Sojka
ue of this option is the plain-file mailstore currently implemented in notmuch. Signed-off-by: Michal Sojka --- lib/Makefile.local |2 + lib/database-private.h |1 + lib/database.cc | 15 ++-- lib/mailstore-files.c | 43 + lib/mailstore-privat

<    1   2   3   4   5   6   7   8   9   10   >