Re: [notmuch] [PATCH] Store the size of the file for each message
authorJames Westby <jw+debian@jameswestby.net>
Sat, 19 Dec 2009 00:08:24 +0000 (00:08 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:54 +0000 (09:35 -0800)
c9/61ae9912c9daa20fa6b5726b781ae517a65b84 [new file with mode: 0644]

diff --git a/c9/61ae9912c9daa20fa6b5726b781ae517a65b84 b/c9/61ae9912c9daa20fa6b5726b781ae517a65b84
new file mode 100644 (file)
index 0000000..1d91e59
--- /dev/null
@@ -0,0 +1,81 @@
+Return-Path: <james@jameswestby.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 3BF26431FC0\r
+       for <notmuch@notmuchmail.org>; Fri, 18 Dec 2009 16:08:32 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id vKs6VCMUS4HD for <notmuch@notmuchmail.org>;\r
+       Fri, 18 Dec 2009 16:08:31 -0800 (PST)\r
+Received: from jameswestby.net (jameswestby.net [89.145.97.141])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8000A431FBF\r
+       for <notmuch@notmuchmail.org>; Fri, 18 Dec 2009 16:08:31 -0800 (PST)\r
+Received: from cpc4-aztw22-2-0-cust59.aztw.cable.virginmedia.com\r
+       ([94.169.116.60] helo=flash)\r
+       by jameswestby.net with esmtpa (Exim 4.69)\r
+       (envelope-from <james@jameswestby.net>)\r
+       id 1NLms1-0006By-Qg; Sat, 19 Dec 2009 00:08:29 +0000\r
+Received: by flash (Postfix, from userid 1000)\r
+       id 3A9CF6E546A; Sat, 19 Dec 2009 00:08:24 +0000 (GMT)\r
+From: James Westby <jw+debian@jameswestby.net>\r
+To: Carl Worth <cworth@cworth.org>, notmuch@notmuchmail.org\r
+In-Reply-To: <871virzzjy.fsf@yoom.home.cworth.org>\r
+References: <87my1grrdi.fsf@jameswestby.net>\r
+       <1261171263-29687-1-git-send-email-jw+debian@jameswestby.net>\r
+       <871virzzjy.fsf@yoom.home.cworth.org>\r
+Date: Sat, 19 Dec 2009 00:08:24 +0000\r
+Message-ID: <87hbrnsu4n.fsf@jameswestby.net>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Subject: Re: [notmuch] [PATCH] Store the size of the file for each message\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 19 Dec 2009 00:08:32 -0000\r
+\r
+On Fri, 18 Dec 2009 14:29:21 -0800, Carl Worth <cworth@cworth.org> wrote:\r
+> On Fri, 18 Dec 2009 21:21:03 +0000, James Westby <jw+debian@jameswestby.net> wrote:\r
+> Yes, a value makes sense here and should make the value easy to\r
+> retrieve.\r
+\r
+Excellent.\r
+\r
+> I usually use a little tool I wrote called xapian-dump. It currently\r
+> exists only in the git history of notmuch. Look at commit:\r
+> \r
+>      22691064666c03c5e76bc787395bfe586929f4cc\r
+> \r
+> or so.\r
+\r
+Thanks, I found delve, which at least showed that something was\r
+being stored. It's in the xapian-tools package, and\r
+\r
+   delve -V2 <database>\r
+\r
+prints out the filesize value for each document.\r
+\r
+It would be great if we could specify an alternative configuration\r
+file for testing so that I can set up a small maildir and test\r
+against that.\r
+\r
+> If the file size is just an integer, then you shouldn't need a custom\r
+> ValueRangeProcessor. One of the existing processors in Xapian should\r
+> work fine.\r
+\r
+Correct, I hadn't read the documentation closely enough. After fixing\r
+that and doing some testing I have this working now. Patch incoming.\r
+\r
+Thanks,\r
+\r
+James\r