[notmuch] [PATCHv2] Preserve folder information when indexing
sojkam1 at fel.cvut.cz
Tue Feb 2 14:25:18 PST 2010
On Tuesday 02 February 2010 22:31:38 micah anderson wrote:
> On Tue, 02 Feb 2010 13:22:29 -0500, Jameson Rollins
<jrollins at 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.
More information about the notmuch