Re: [notmuch] [PATCH] notmuch: Add Maildir directory name as tag name for messages
authorMichiel Buddingh' <michiel@michielbuddingh.net>
Sun, 22 Nov 2009 15:57:52 +0000 (16:57 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:39 +0000 (09:35 -0800)
a3/d8674f64842a8af736ddc469eec82f7364d3cb [new file with mode: 0644]

diff --git a/a3/d8674f64842a8af736ddc469eec82f7364d3cb b/a3/d8674f64842a8af736ddc469eec82f7364d3cb
new file mode 100644 (file)
index 0000000..3c21057
--- /dev/null
@@ -0,0 +1,99 @@
+Return-Path: <michiel@michielbuddingh.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 1D077431FBC\r
+       for <notmuch@notmuchmail.org>; Sun, 22 Nov 2009 07:57:55 -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 uOybpHLdYlCE for <notmuch@notmuchmail.org>;\r
+       Sun, 22 Nov 2009 07:57:53 -0800 (PST)\r
+Received: from aegir.org.uk (aegir.org.uk [87.238.170.13])\r
+       by olra.theworths.org (Postfix) with ESMTP id 7B73A431FC0\r
+       for <notmuch@notmuchmail.org>; Sun, 22 Nov 2009 07:57:53 -0800 (PST)\r
+Received: from localhost.localdomain (109-9-ftth.onsnetstudenten.nl\r
+       [145.120.9.109])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by aegir.org.uk (Postfix) with ESMTPSA id 904662E01B;\r
+       Sun, 22 Nov 2009 16:57:52 +0100 (CET)\r
+Date: Sun, 22 Nov 2009 16:57:52 +0100\r
+From: Michiel Buddingh' <michiel@michielbuddingh.net>\r
+To: notmuch@notmuchmail.org, cworth@cworth.org\r
+Message-ID: <4b095f80.oVC2da9Z18jqqm5n%michiel@michielbuddingh.net>\r
+References: <87fx8bygi7.fsf@linux.vnet.ibm.com>\r
+       <87bpiv4t9h.fsf@yoom.home.cworth.org>\r
+       <87y6lz39nd.fsf@yoom.home.cworth.org>\r
+       <20091121221207.GB17268@jukie.net>\r
+       <9cce5525b093b87fe74d427954ffad89@localhost>\r
+       <87d43b2oif.fsf@yoom.home.cworth.org>\r
+       <9bfdedddeab9c58cd45d8d448323d0fc@localhost>\r
+       <87fx86g39u.fsf@yoom.home.cworth.org>\r
+In-Reply-To: <87fx86g39u.fsf@yoom.home.cworth.org>\r
+User-Agent: Heirloom mailx 12.4 7/29/08\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Transfer-Encoding: 7bit\r
+Subject: Re: [notmuch] [PATCH] notmuch: Add Maildir directory name as tag\r
+       name for messages\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: Sun, 22 Nov 2009 15:57:55 -0000\r
+\r
+Carl Worth <cworth@cworth.org> wrote:\r
+\r
+> > A Maildir-aware notmuch could incorporate this to be far more\r
+> > resistant to bulk mail moves done by other clients, by using\r
+> > filename lookups to avoid accessing and parsing the mail\r
+> > files themselves.\r
+\r
+> I don't think opening a file to read out a message ID will ever be\r
+> a bottleneck. But yes, we could take advantage of the unique name\r
+> if we insisted that the storage have it.\r
+\r
+I'm not so sure.  On traditional unix-like filesystems, every file \r
+access is another potential disk seek.  \r
+\r
+People use a lot of different strategies for keeping their mail \r
+accessible and performant; you yourself, I gather, use non-semantic\r
+directories mainly intended to keep the number of files per directory\r
+low; others store their mail per month, or per year.\r
+\r
+I might choose to move all my mail from 2008 from my INBOX to the \r
+folder Archive.2008; such moves may change the paths of thousands \r
+of messages at a time.\r
+\r
+> Personally, I still regularly end up indexing stuff that's not \r
+> in proper maildir format, (like just manually copying a mail\r
+> file "foo" down into a directory that I know isn't being delivered \r
+> to by any MDA but that I want notmuch to index.) Maybe that's just\r
+> me, because I'm always bringing up little things for debugging, \r
+> etc. But it is convenient at least.\r
+\r
+Oh true.  And it occurs to me that notmuch is a quite sensible \r
+companion tool to MH users (if they're still around in any numbers)\r
+\r
+> Actually, I don't think that's true at all. Notmuch is definitely\r
+> intended to become a lot more than it is right now. And if it's not\r
+> making it easy for you to deal with mail the way you'd like to, then\r
+> we definitely do want to look into expanding notmuch to be able to\r
+> address that.\r
+\r
+Thanks for your consideration; on the other hand, I do think that it\r
+is a good idea not to make matters more complex than they need to be,\r
+so I can certainly sympathise with the principles you've set for this\r
+project.\r
+\r
+regards,\r
+Michiel Buddingh'\r