On Mon, 12 Apr 2010 17:11:24 +0200, Michal Sojka <sojk...@fel.cvut.cz> wrote: > In my mailstore abstraction patches, I suppose that tags for new > messages are derived in some way from mailstore. The idea is, that once > we have a mail store which can store tags (e.g. git-based mails store), > the tags will be assigned on delivery by tools like procmail and notmuch > will only index that tags for faster searching. The problem is the it > will take some time to implement all of this and we want this > functionality now.
This is a big effort, and not one that all notmuch users are really interested in, so I would like to not see it specifically guide notmuch development. There are lots of features that would be nice to have soon. In any event, I wasn't suggesting we drop everything to do this. I was just curious what people thought of this approach. > The problem I see with this approach is, that all notmuch searches are > build around Xapian. A simple implementation of the above would mean > that whenever you add a new message to the database, you would need to > execute a Xapian query to see if the new message matches your rule or > not. This would be, of course, very expensive. This does sound like a potential issue. I definitely don't understand how new messages are added to the database. I was mostly suggesting a syntax for adding tag as new messages are added, though, not that an actual xapian search term. I don't know if they can be decoupled, though. jamie.
pgp1t9TIHZk4T.pgp
Description: PGP signature
_______________________________________________ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch