Re: [notmuch] Git feature branch

2010-01-22 Thread Sebastian Spaeth
On Fri, 22 Jan 2010 09:09:30 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: On 01/20/10 21:00, micah anderson wrote: Cool! It would be useful if you provided thread-id's for each of these so we could look them up and read more about them. True, I'll try to include thread id-s in

[notmuch] [PATCH] Make the date parser nicer

2010-01-22 Thread Sebastian Spaeth
Currently we have to enter mail dates as timestamps. This approach does 2 things: it requires the prefix 'date:' and it allows timestamps to be specified as , MM or MMDD. So a notmuch show date:2005..20060512 will find all mails from 2005-01-01 until 2006-05-12. The code is probably

Re: [notmuch] [PATCH] Make the date parser nicer

2010-01-22 Thread Sebastian Spaeth
Please find in the previous mail attached my patch (against my current all-feature branch, but should pretty much apply to current master too). It is a proof-of-concept to make the date parser nicer. The following searches work with this code: notmuch show... ... date:2001..2010 (from beginning

Re: [notmuch] indexing mail?

2010-01-22 Thread Jesse Rosenthal
On Sat, 23 Jan 2010 19:09:35 +1300, Carl Worth cwo...@cworth.org wrote: But I've since pushed a separate patch to fix this bug. Please give it a try and let me know what you think. I just gave it a try, and building failed because of a seeming misspelling on line 285 (`DT_UKNOWN'), from commit

[notmuch] Git feature branch

2010-01-22 Thread Sebastian Spaeth
On 01/20/10 21:00, micah anderson wrote: > Cool! It would be useful if you provided thread-id's for each of these > so we could look them up and read more about them. True, I'll try to include thread id-s in the future. spaetz

[notmuch] Git feature branch

2010-01-22 Thread Sebastian Spaeth
On Fri, 22 Jan 2010 09:09:30 +0100, Sebastian Spaeth wrote: > On 01/20/10 21:00, micah anderson wrote: > > > Cool! It would be useful if you provided thread-id's for each of these > > so we could look them up and read more about them. > > True, I'll try to include thread id-s in the future. I

[notmuch] [PATCH] Make the date parser nicer

2010-01-22 Thread Sebastian Spaeth
Currently we have to enter mail dates as timestamps. This approach does 2 things: it requires the prefix 'date:' and it allows timestamps to be specified as , MM or MMDD. So a notmuch show date:2005..20060512 will find all mails from 2005-01-01 until 2006-05-12. The code is probably

[notmuch] [PATCH] Make the date parser nicer

2010-01-22 Thread Sebastian Spaeth
Please find in the previous mail attached my patch (against my current all-feature branch, but should pretty much apply to current master too). It is a proof-of-concept to make the date parser nicer. The following searches work with this code: notmuch show... ... date:2001..2010 (from beginning

[notmuch] [PATCH] Make the date parser nicer

2010-01-22 Thread Sebastian Spaeth
On Fri, 22 Jan 2010 16:26:11 +0100, Sebastian Spaeth wrot> + if (begin.size() == 8) { > + int no_items; > + no_items = sscanf(begin.c_str(), "%4i%2i%2i", , , ); > + if (no_items != 3) > + return Xapian::BAD_VALUENO; Also I have found that my sscanf skills are sourly

[notmuch] [PATCH] fontify date in header

2010-01-22 Thread Jameson Rollins
ces in a message header. -- 1.6.5 -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100122/2382cabe/attachment.pgp>