Re: [notmuch] [PATCH] Add post-add and post-tag hooks

2009-12-22 Thread Olly Betts
Tomas Carnecky writes: #if defined(__sun__) ... sprintf, stat etc #else (void) path; return dirent-d_type == DT_DIR; #endif Rather than a platform-specific check, it would be better to check if DT_DIR is defined. Beware that even on Linux (where the d_type field is

Re: [notmuch] Missing messages breaking threads

2009-12-22 Thread Carl Worth
On Tue, 22 Dec 2009 22:48:25 + (UTC), Olly Betts o...@survex.com wrote: This is just the sort of thing which Xapian's user metadata is there for. It's essentially a key/value store which is versioned along with the rest of the Xapian database. So to set it:

[notmuch] [PATCH] Add post-add and post-tag hooks

2009-12-22 Thread Tomas Carnecky
The post-add hook is run by 'notmuch new' after each new message is added, post-tag is run after a tag has been added or removed. The hooks are stored in the users home directory (~/.notmuch/hooks/). Since post-tag is run unconditionally every time a new tag is added or removed, that means it is

[notmuch] [PATCH] Add post-add and post-tag hooks

2009-12-22 Thread Tomas Carnecky
On 12/22/09 3:56 AM, Tomas Carnecky wrote: > The post-add hook is run by 'notmuch new' after each new message is added, > post-tag is run after a tag has been added or removed. The hooks are stored > in the users home directory (~/.notmuch/hooks/). > > Since post-tag is run unconditionally

[notmuch] Missing messages breaking threads

2009-12-22 Thread Olly Betts
Carl Worth writes: > We don't have any concept of versioning yet, but it would obviously be > easy to have a new version document with an increasing integer. Adding a magic document for this isn't ideal as you have to make sure it can't appear in search results, etc. This is just the sort of

[notmuch] [PATCH] Add post-add and post-tag hooks

2009-12-22 Thread Olly Betts
Tomas Carnecky writes: > #if defined(__sun__) > ... sprintf, stat etc > #else > (void) path; > return dirent->d_type == DT_DIR; > #endif Rather than a platform-specific check, it would be better to check if DT_DIR is defined. Beware that even on Linux (where the d_type field is

[notmuch] Missing messages breaking threads

2009-12-22 Thread Carl Worth
er than a magic document. -Carl (grateful to have a Xapian expert keeping watch on the list) -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091222/aec15b3c/attachment.pgp>

[notmuch] [PATCH] Add an "--output=(json|text|)" command-line option to both notmuch-search and notmuch-show.

2009-12-22 Thread Carl Worth
e to be able to make of my mail store with things like this. -Carl -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091222/409c9d49/attachment.pgp>

[notmuch] [PATCH] JSON output for notmuch-search and notmuch-show.

2009-12-22 Thread Carl Worth
pgp-signature Size: 189 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20091222/c075c46d/attachment.pgp>