[PATCH] notmuch new --new-tags=tags...
Jameson Rollins
jrollins at finestructure.net
Mon Apr 12 08:55:55 PDT 2010
On Mon, 12 Apr 2010 17:11:24 +0200, Michal Sojka <sojkam1 at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100412/01f92983/attachment-0001.pgp>
More information about the notmuch
mailing list