Re: [notmuch] [PATCH] notmuch-config: make new message tags configurable

2010-03-27 Thread Michal Sojka
On Sun, 28 Mar 2010, Ben Gamari wrote: > On Fri, 12 Mar 2010 17:13:26 -0500, Ben Gamari wrote: > > Add a new_tags option in the [messages] section of the configuration > > file to allow the user to specify which tags should be added to new > > messages by notmuch new. > > Would anyone oppose this

Re: [notmuch] JSON based emacs UI

2010-03-27 Thread Michal Sojka
On Sun, 28 Mar 2010, Sebastian Spaeth wrote: > On Mon, 22 Mar 2010 14:47:39 +, David Edmondson wrote: > > I'm pushed the first stage of a JSON based emacs UI to the repository at > > http://github.com/dme/notmuch (it's in the "master" branch). > > Despite the switch to daylight savings time s

[notmuch] Mailstore abstraction & maildir synchronization

2010-03-27 Thread Michal Sojka
On Sat, 27 Mar 2010, Michal Sojka wrote: > On Fri, 26 Mar 2010, Michal Sojka wrote: > > On Wed, 24 Mar 2010, Stewart Smith wrote: > > > On Thu, 18 Mar 2010 16:39:36 +0100, Michal Sojka > > > wrote: > > > > - Only file-based storage is suported. Notmuch access the files > > > > directly, and not

[notmuch] [PATCH v3 6/6] Add 'cat' subcommand

2010-03-27 Thread Michal Sojka
This command dumps raw message identified by filename to standard output. It uses mail store interface to get the message from the right place. notmuch.el was modified to use this command to access the raw message content (view/save attachments and view raw message). Signed-off-by: Michal Sojka

[notmuch] [PATCH v3 5/6] Access messages through mail store interface

2010-03-27 Thread Michal Sojka
This patch modifies notmuch binary to access the messages through mail store interface, so that non-file based mail stores can also be implemented. The API of notmuch library was changed. Now, notmuch_message_get_filename() returns relative file name with respect to the database path. As a result,

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

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

[notmuch] [PATCH v3 3/6] Add maildir-based mailstore

2010-03-27 Thread Michal Sojka
This mailstore allows bi-directional synchronization between maildir flags and certain tags. The flag-to-tag mapping is defined by flag2tag array. The synchronization works this way: 1) Whenever notmuch new is executed, the following happens: o New messages are tagged with inbox. o New mess

[notmuch] [PATCH v3 2/6] Conversion to mailstore abstraction

2010-03-27 Thread Michal Sojka
The code for detection of new files in the mailstore and their addition to the database is moved from notmuch-new.c to lib/mailstore-files.c, where it is called by the abstract mailstore interface. The code was only changed to allow the progress reporting functions to be implemented outside of not

[notmuch] [PATCH v3 1/6] Mailstore abstraction interface

2010-03-27 Thread Michal Sojka
The goal of mailstore abstraction is to allow notmuch to store tags together with email messages. The abstract interface is needed because people want to use different ways of storing their emails. This patchseries implements two types of mailstore - plain files and maildir. It is expected that add

[notmuch] Mailstore abstraction & maildir synchronization

2010-03-27 Thread Michal Sojka
On Fri, 26 Mar 2010, Michal Sojka wrote: > On Wed, 24 Mar 2010, Stewart Smith wrote: > > On Thu, 18 Mar 2010 16:39:36 +0100, Michal Sojka > > wrote: > > > - Only file-based storage is suported. Notmuch access the files > > > directly, and not via the mailstore interface. > > > > It'll be great

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

2010-03-27 Thread Michal Sojka
On Sun, 28 Mar 2010, Sebastian Spaeth wrote: > On Sun, 28 Mar 2010 00:37:00 +0100, "Sebastian Spaeth" > wrote: > > On Fri, 26 Mar 2010 22:18:13 +0100, Michal Sojka > > wrote: > > > When Ctrl-C is pressed in a wrong time during notmuch new, it can lead > > > to removal of messages from the datab

Re: [notmuch] [PATCH 1/3] Build and link against notmuch shared library, install notmuch.h

2010-03-27 Thread Ben Gamari
Does anyone have this queued up to be merged upstream? I think we're beginning to see the need for a library at this point and as far as I can see, this is an excellent patch for it. - Ben Signed-off-by: Ben Gamari On Fri, 12 Mar 2010 14:47:34 +0100, Ingmar Vanhassel wrote: > From: Ben Gamari

[notmuch] [PATCH 1/3] Build and link against notmuch shared library, install notmuch.h

2010-03-27 Thread Ben Gamari
Does anyone have this queued up to be merged upstream? I think we're beginning to see the need for a library at this point and as far as I can see, this is an excellent patch for it. - Ben Signed-off-by: Ben Gamari On Fri, 12 Mar 2010 14:47:34 +0100, Ingmar Vanhassel wrote: > From: Ben Gamari

Re: [notmuch] [PATCH] notmuch-config: make new message tags configurable

2010-03-27 Thread Ben Gamari
On Fri, 12 Mar 2010 17:13:26 -0500, Ben Gamari wrote: > Add a new_tags option in the [messages] section of the configuration > file to allow the user to specify which tags should be added to new > messages by notmuch new. Would anyone oppose this being merged? I've been running with it on a daily

[notmuch] [PATCH] notmuch-config: make new message tags configurable

2010-03-27 Thread Ben Gamari
On Fri, 12 Mar 2010 17:13:26 -0500, Ben Gamari wrote: > Add a new_tags option in the [messages] section of the configuration > file to allow the user to specify which tags should be added to new > messages by notmuch new. Would anyone oppose this being merged? I've been running with it on a dail

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

2010-03-27 Thread Sebastian Spaeth
On Sun, 28 Mar 2010 00:37:00 +0100, "Sebastian Spaeth" wrote: > On Fri, 26 Mar 2010 22:18:13 +0100, Michal Sojka wrote: > > 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. CC -O2 notmuch

Re: [notmuch] JSON based emacs UI

2010-03-27 Thread Sebastian Spaeth
On Mon, 22 Mar 2010 14:47:39 +, David Edmondson wrote: > I'm pushed the first stage of a JSON based emacs UI to the repository at > http://github.com/dme/notmuch (it's in the "master" branch). Despite the switch to daylight savings time stealing me an hour of this night, I managed to test you

Re: [notmuch] notmuchsync, now with new formula ;-)

2010-03-27 Thread Sebastian Spaeth
On Sun, 28 Mar 2010 03:22:31 +0200, Sebastian Spaeth wrote: > This has changed!!!: > --dryrun has become --dry-run for consistency with git Ohh, one last thing, it no longer does an implicit "notmuch new" (because that is not implemented in cnotmuch (yet?)) so call that before after as needed.

[notmuch] notmuchsync, now with new formula ;-)

2010-03-27 Thread Sebastian Spaeth
Hi all, I just pushed an experimental branch to notmuchsync that uses notmuch.so and my cnotmuch bindings. It needs some cleanup and documentation, but it worked on my box.If you feel adventorous, get it from git clone g...@github.com:spaetz/notmuchsync.git The new stuff is in branch cnotmuch. I

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

2010-03-27 Thread Sebastian Spaeth
On Fri, 26 Mar 2010 22:18:13 +0100, Michal Sojka wrote: > 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. Thanks, applied in my feature-all branch. Sebastian __

Re: [notmuch] [PATCH] Fix typo in notmuch.h documentation regarding database open modes

2010-03-27 Thread Sebastian Spaeth
On Fri, 26 Mar 2010 18:39:17 +, Michael Forney wrote: > --- > lib/notmuch.h |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Thanks, applied in my feature-all branch Sebastian ___ notmuch mailing list notmuch@notmuchmail.org http://no

Re: [notmuch] [Sebastian Spaeth] Pull requests

2010-03-27 Thread Sebastian Spaeth
On Thu, 25 Mar 2010 22:50:52 -0400, micah anderson wrote: > On Mon, 01 Mar 2010 15:57:00 +0100, "Sebastian Spaeth" > wrote: > > > From git repository git://github.com/spaetz/notmuch-all-feature.git I > > would like to advocate the following branches for quick pulling. Each > > contains 1 or 2 p

Re: [notmuch] Mailstore abstraction & maildir synchronization

2010-03-27 Thread Michal Sojka
On Sat, 27 Mar 2010, Michal Sojka wrote: > On Fri, 26 Mar 2010, Michal Sojka wrote: > > On Wed, 24 Mar 2010, Stewart Smith wrote: > > > On Thu, 18 Mar 2010 16:39:36 +0100, Michal Sojka > > > wrote: > > > > - Only file-based storage is suported. Notmuch access the files > > > > directly, and not

[notmuch] [PATCH v3 2/6] Conversion to mailstore abstraction

2010-03-27 Thread Michal Sojka
The code for detection of new files in the mailstore and their addition to the database is moved from notmuch-new.c to lib/mailstore-files.c, where it is called by the abstract mailstore interface. The code was only changed to allow the progress reporting functions to be implemented outside of not

[notmuch] [PATCH v3 6/6] Add 'cat' subcommand

2010-03-27 Thread Michal Sojka
This command dumps raw message identified by filename to standard output. It uses mail store interface to get the message from the right place. notmuch.el was modified to use this command to access the raw message content (view/save attachments and view raw message). Signed-off-by: Michal Sojka

[notmuch] [PATCH v3 5/6] Access messages through mail store interface

2010-03-27 Thread Michal Sojka
This patch modifies notmuch binary to access the messages through mail store interface, so that non-file based mail stores can also be implemented. The API of notmuch library was changed. Now, notmuch_message_get_filename() returns relative file name with respect to the database path. As a result,

[notmuch] [PATCH v3 3/6] Add maildir-based mailstore

2010-03-27 Thread Michal Sojka
This mailstore allows bi-directional synchronization between maildir flags and certain tags. The flag-to-tag mapping is defined by flag2tag array. The synchronization works this way: 1) Whenever notmuch new is executed, the following happens: o New messages are tagged with inbox. o New mess

[notmuch] [PATCH v3 1/6] Mailstore abstraction interface

2010-03-27 Thread Michal Sojka
The goal of mailstore abstraction is to allow notmuch to store tags together with email messages. The abstract interface is needed because people want to use different ways of storing their emails. This patchseries implements two types of mailstore - plain files and maildir. It is expected that add

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

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

Re: [notmuch] Mailstore abstraction & maildir synchronization

2010-03-27 Thread Michal Sojka
On Fri, 26 Mar 2010, Michal Sojka wrote: > On Wed, 24 Mar 2010, Stewart Smith wrote: > > On Thu, 18 Mar 2010 16:39:36 +0100, Michal Sojka > > wrote: > > > - Only file-based storage is suported. Notmuch access the files > > > directly, and not via the mailstore interface. > > > > It'll be great