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

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

Date: Tue, 2 Feb 2010 23:25:18 +0100

To: notmuch@notmuchmail.org

Cc:

From: Michal Sojka


On Tuesday 02 February 2010 22:31:38 micah anderson wrote:
> On Tue, 02 Feb 2010 13:22:29 -0500, Jameson Rollins 
<jrollins@finestructure.net> wrote:
> > I'm starting to think that maybe the folder: field is not the right way
> > to do this, though.  What if a message moves?
> 
> The easiest way to answer this question is to try it. I did that, and
> things didn't work as expected. I expected that once the message was
> moved to a different folder, and 'notmuch new' was run, then the folder
> search result would move with the message move.

I want it to work the same way as you expected. It seems it would be necessary 
to modify notmuch_database_remove_message() so that it changes folder term if 
it detects rename.

I guess it should be possible. If tags can be modified then folder terms can 
be modified as well.

Michal

Thread: