[notmuch] [PATCH 1/2] notmuch-show: Do not output (null) when the message body is empty

2010-03-02 Thread Sebastian Spaeth
Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de --- I actually agree that we should output tags as array, it was just that the get_tags_as_string function was already existing, so that was more convenient. Here comes the second iteration that outputs the tags as json array. notmuch-show.c

[notmuch] [PATCH 2/2] notmuch-show: add tags to json output

2010-03-02 Thread Sebastian Spaeth
The previous json patches forgot to add the notmuch tags to the json output. This is inconsistent to the text output so here they are. We just output a 'tags' field that sends a space delimited list of json-encoded notmuch tags. Signed-off-by: Sebastian Spaeth sebast...@sspaeth.de ---

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

2010-03-02 Thread martin f krafft
also sprach Sebastian Spaeth sebast...@sspaeth.de [2010.03.02.1337 +0100]: Previously, we would output: 'On Thu, 25 Feb 2010 14:32:54 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote:' now it is: 'On 2010-02-25, Sebastian Spaeth wrote:' In case we don't find a '' (as indicator for

Re: [notmuch] an other ready-to-use store option for notmuch : CouchDB

2010-03-02 Thread Jed Brown
On Tue, 02 Mar 2010 16:26:10 +0100, Paul R paul.r...@gmail.com wrote: CouchDB databases can be replicated and synced in both directions. Conflicts are lazily handled. I've wondered about this. An interesting property would be lack of a global lock, which is one of the reasons why people are

Re: [notmuch] an other ready-to-use store option for notmuch : CouchDB

2010-03-02 Thread martin f krafft
also sprach Paul R paul.r...@gmail.com [2010.03.02.1626 +0100]: CouchDB databases can be replicated and synced in both directions. Conflicts are lazily handled. What does this mean? -- martin | http://madduck.net/ | http://two.sentenc.es/ fitter, healthier, more productive like a pig, in a

Re: [notmuch] an other ready-to-use store option for notmuch : CouchDB

2010-03-02 Thread James Westby
On Tue, 2 Mar 2010 16:43:10 +0100, martin f krafft madd...@madduck.net wrote: also sprach Paul R paul.r...@gmail.com [2010.03.02.1626 +0100]: CouchDB databases can be replicated and synced in both directions. Conflicts are lazily handled. What does this mean? Couch has deterministic

[notmuch] [PATCH] Do not segfault on empty mime parts

2010-03-02 Thread martin f. krafft
notmuch previously unconditionally checked mime parts for various properties, but not for NULL, which is the case if libgmime encounters an empty mime part. Upon encounter of an empty mime part, the following is printed to stderr (the second line due to my patch): (process:17197):

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

2010-03-02 Thread Sebastian Spaeth
On Tue, 2 Mar 2010 15:01:58 +0100, martin f krafft madd...@madduck.net wrote: In case we don't find a '' (as indicator for 'Realname email'), we still use the whole from address. This makes me cringe. I don't think replying should be notmuch-functionality in the first place. :-) I just

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 sebast...@sspaeth.de wrote: Previously, we would output: 'On Thu, 25 Feb 2010 14:32:54 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote:' now it is: 'On 2010-02-25, Sebastian Spaeth wrote:' In case we don't find a '' (as indicator for

[notmuch] [PATCH 1/2] notmuch-show: Do not output (null) when the message body is empty

2010-03-02 Thread Sebastian Spaeth
Signed-off-by: Sebastian Spaeth --- I actually agree that we should output tags as array, it was just that the get_tags_as_string function was already existing, so that was more convenient. Here comes the second iteration that outputs the tags as json array. notmuch-show.c |6 -- 1

[notmuch] [PATCH 2/2] notmuch-show: add tags to json output

2010-03-02 Thread Sebastian Spaeth
The previous json patches forgot to add the notmuch tags to the json output. This is inconsistent to the text output so here they are. We just output a 'tags' field that sends a space delimited list of json-encoded notmuch tags. Signed-off-by: Sebastian Spaeth --- notmuch-show.c | 13

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

2010-03-02 Thread Sebastian Spaeth
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 whole from address. Signed-off-by: Sebastian Spaeth --- This probably

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

2010-03-02 Thread martin f krafft
sc: Digital signature (see http://martin-krafft.net/gpg/) URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100302/ab628642/attachment.pgp>

[notmuch] an other ready-to-use store option for notmuch : CouchDB

2010-03-02 Thread Paul R
Hi, couchDB is a document-oriented database. It stores documents, IOW key-value pairs, under a unique ID. These documents are retrieved through views and queries. A mail with some tags and some mime parts is a perfect exemple of what couchdb call a "document". CouchDB databases can be replicated

[notmuch] an other ready-to-use store option for notmuch : CouchDB

2010-03-02 Thread Jed Brown
On Tue, 02 Mar 2010 16:26:10 +0100, Paul R wrote: > CouchDB databases can be replicated and synced in both directions. > Conflicts are lazily handled. I've wondered about this. An interesting property would be lack of a global lock, which is one of the reasons why people are either not having

[notmuch] an other ready-to-use store option for notmuch : CouchDB

2010-03-02 Thread martin f krafft
e http://martin-krafft.net/gpg/) URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100302/f48a9050/attachment.pgp>

[notmuch] an other ready-to-use store option for notmuch : CouchDB

2010-03-02 Thread James Westby
On Tue, 2 Mar 2010 16:43:10 +0100, martin f krafft wrote: > also sprach Paul R [2010.03.02.1626 +0100]: > > CouchDB databases can be replicated and synced in both directions. > > Conflicts are lazily handled. > > What does this mean? Couch has deterministic conflict resolution between the two

[notmuch] [PATCH] Do not segfault on empty mime parts

2010-03-02 Thread martin f. krafft
notmuch previously unconditionally checked mime parts for various properties, but not for NULL, which is the case if libgmime encounters an empty mime part. Upon encounter of an empty mime part, the following is printed to stderr (the second line due to my patch): (process:17197):

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

2010-03-02 Thread Sebastian Spaeth
On Tue, 2 Mar 2010 15:01:58 +0100, martin f krafft wrote: > > In case we don't find a '<' (as indicator for 'Realname '), > > we still use the whole from address. > > This makes me cringe. I don't think replying should be > notmuch-functionality in the first place. :-) I just posted this patch