Re: [notmuch] [PATCHv2] Preserve folder information when indexing

Subject: Re: [notmuch] [PATCHv2] Preserve folder information when indexing

Date: Tue, 02 Feb 2010 13:22:29 -0500

To: Arvid Picciani, notmuch@notmuchmail.org

Cc:

From: Jameson Rollins


On Tue, 02 Feb 2010 18:48:25 +0100, Arvid Picciani <aep@exys.org> wrote:
> On Tue,  2 Feb 2010 16:01:08 +0100, Michal Sojka<sojkam1@fel.cvut.cz> 
> wrote:
> unfortunately it doesnt do anything here :/
> i rebuilt the entire index, but no folder: field is added.
> can anyone who got it working tell me their directory layout?
> mine would be something like:

What search terms are you using?  You shouldn't consider the cur/new/tmp
maildir subdirectories in the folder naming.  Those are fundamental
parts of maildirs.  You would want to look at the maildir name itself.

I'm starting to think that maybe the folder: field is not the right way
to do this, though.  What if a message moves?  Only new mails are having
this field modified, so if messages are moved that field is not
modified, and since it's being added as part of the message (like
"subject:") it's not modifiable.  It also can't be added down the line
to messages that don't already have it.  I'm going back to my original
suggestion, which was that the configuration should state tag that
should be added for messages in certain folders.

jamie.
part-000.sig (application/pgp-signature)

Thread: