[notmuch] [PATCH] Store the size of the file for each message

James Westby jw+debian at jameswestby.net
Fri Dec 18 16:08:24 PST 2009


On Fri, 18 Dec 2009 14:29:21 -0800, Carl Worth <cworth at cworth.org> wrote:
> On Fri, 18 Dec 2009 21:21:03 +0000, James Westby <jw+debian at jameswestby.net> wrote:
> Yes, a value makes sense here and should make the value easy to
> retrieve.

Excellent.

> I usually use a little tool I wrote called xapian-dump. It currently
> exists only in the git history of notmuch. Look at commit:
> 
> 	22691064666c03c5e76bc787395bfe586929f4cc
> 
> or so.

Thanks, I found delve, which at least showed that something was
being stored. It's in the xapian-tools package, and

   delve -V2 <database>

prints out the filesize value for each document.

It would be great if we could specify an alternative configuration
file for testing so that I can set up a small maildir and test
against that.

> If the file size is just an integer, then you shouldn't need a custom
> ValueRangeProcessor. One of the existing processors in Xapian should
> work fine.

Correct, I hadn't read the documentation closely enough. After fixing
that and doing some testing I have this working now. Patch incoming.

Thanks,

James


More information about the notmuch mailing list