Re: [notmuch] JSON based emacs UI

2010-03-26 Thread David Edmondson
On Fri, 26 Mar 2010 10:16:12 +0530, Aneesh Kumar K. V aneesh.ku...@linux.vnet.ibm.com wrote: That worked. Thanks. BTW is there a way to get '=' to reload the thread details. Something similar to notmuch-search-refresh-view. for the show window. I'll look at adding it. That would make sure i

Re: [notmuch] JSON based emacs UI

2010-03-26 Thread Jesse Rosenthal
Hi David, Thanks for this -- it really looks great so far. As always, feedback (especially if something breaks) appreciated. There's a complaint when I open a (multipart?) message: invalid function: mm-make-handle Adding (require 'mm-decode) to notmuch-show.el fixes this problem. Best,

Re: [notmuch] JSON based emacs UI

2010-03-26 Thread David Edmondson
On Fri, 26 Mar 2010 05:07:49 -0400, Jesse Rosenthal jrosent...@jhu.edu wrote: There's a complaint when I open a (multipart?) message: invalid function: mm-make-handle Adding (require 'mm-decode) to notmuch-show.el fixes this problem. Sorry about that. The repository is updated accordingly.

Re: [notmuch] JSON based emacs UI

2010-03-26 Thread Aneesh Kumar K. V
On Mon, 22 Mar 2010 14:47:39 +, David Edmondson d...@dme.org wrote: I found another issue. In the notmuch-show-mode RET key on from and subject doesn't seem to work. For ex: for the last message RET key on from doesn't fold the message. For all the message RET key on subject doesn't show the

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

2010-03-26 Thread Michael Forney
--- lib/notmuch.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/notmuch.h b/lib/notmuch.h index 0d9cb0f..2bc03f4 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -156,7 +156,7 @@ typedef enum { * (not necessarily by this process), by calling *

Re: [notmuch] JSON based emacs UI

2010-03-26 Thread David Edmondson
On Fri, 26 Mar 2010 20:21:46 +0530, Aneesh Kumar K. V aneesh.ku...@linux.vnet.ibm.com wrote: On Mon, 22 Mar 2010 14:47:39 +, David Edmondson d...@dme.org wrote: I found another issue. In the notmuch-show-mode RET key on from and subject doesn't seem to work. For ex: for the last

[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 sojk...@fel.cvut.cz --- notmuch-new.c |3 +++ 1 files changed, 3 insertions(+), 0

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

2010-03-26 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

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

2010-03-26 Thread Michal Sojka
Signed-off-by: Michal Sojka sojk...@fel.cvut.cz --- test/t0006-maildir.sh | 205 + test/test-lib.sh |7 +- 2 files changed, 210 insertions(+), 2 deletions(-) create mode 100755 test/t0006-maildir.sh diff --git a/test/t0006-maildir.sh

[notmuch] JSON based emacs UI

2010-03-26 Thread Aneesh Kumar K. V
On Thu, 25 Mar 2010 09:14:09 +, David Edmondson wrote: > On Thu, 25 Mar 2010 10:11:38 +0530, "Aneesh Kumar K. V" linux.vnet.ibm.com> wrote: > > Is there a way to get the inline patches shown similar to > > diff-mode not just the attached patches ? > > A new hook function for text/plain

[notmuch] JSON based emacs UI

2010-03-26 Thread David Edmondson
On Fri, 26 Mar 2010 10:16:12 +0530, "Aneesh Kumar K. V" wrote: > That worked. Thanks. BTW is there a way to get '=' to reload the thread > details. Something similar to notmuch-search-refresh-view. for the show > window. I'll look at adding it. > That would make sure i can get the tag updated

[notmuch] JSON based emacs UI

2010-03-26 Thread Jesse Rosenthal
Hi David, Thanks for this -- it really looks great so far. > As always, feedback (especially if something breaks) appreciated. There's a complaint when I open a (multipart?) message: invalid function: mm-make-handle Adding "(require 'mm-decode)" to notmuch-show.el fixes this problem. Best,

[notmuch] JSON based emacs UI

2010-03-26 Thread David Edmondson
On Fri, 26 Mar 2010 05:07:49 -0400, Jesse Rosenthal wrote: > There's a complaint when I open a (multipart?) message: > > invalid function: mm-make-handle > > Adding "(require 'mm-decode)" to notmuch-show.el fixes this problem. Sorry about that. The repository is updated accordingly. dme. --

[notmuch] JSON based emacs UI

2010-03-26 Thread Aneesh Kumar K. V
On Mon, 22 Mar 2010 14:47:39 +, David Edmondson wrote: I found another issue. In the notmuch-show-mode "RET" key on from and subject doesn't seem to work. For ex: for the last message "RET" key on from doesn't fold the message. For all the message "RET" key on subject doesn't show the

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

2010-03-26 Thread Michael Forney
--- lib/notmuch.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/notmuch.h b/lib/notmuch.h index 0d9cb0f..2bc03f4 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -156,7 +156,7 @@ typedef enum { * (not necessarily by this process), by calling *

[notmuch] JSON based emacs UI

2010-03-26 Thread David Edmondson
On Fri, 26 Mar 2010 20:21:46 +0530, "Aneesh Kumar K. V" wrote: > On Mon, 22 Mar 2010 14:47:39 +, David Edmondson wrote: > > I found another issue. In the notmuch-show-mode "RET" key on from and > subject doesn't seem to work. > > For ex: for the last message "RET" key on from doesn't fold

[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 > > http://cr.yp.to/proto/maildir.html. My patch

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

2010-03-26 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

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

2010-03-26 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

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

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

[notmuch] [PATCH v2 2/4] Conversion to mailstore abstraction

2010-03-26 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