[PATCH] notmuch new --new-tags=tags...
Anthony Towns
aj at erisian.com.au
Mon Apr 12 10:15:28 PDT 2010
On Tue, Apr 13, 2010 at 01:55, Jameson Rollins
<jrollins at finestructure.net> wrote:
> On Mon, 12 Apr 2010 17:11:24 +0200, Michal Sojka <sojkam1 at fel.cvut.cz> wrote:
>> The problem I see with this approach is, that all notmuch searches are
>> build around Xapian. ...
> 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.
If you say "they're just notmuch tag commands applied at new time" you
expect to have the same search behaviour as Xapian...
Maybe you could do that by temporarily inserting the mail into an
"inmemory" Xapian database, since you're only checking to see if that
particular one matches.
On the other hand, maybe having it be a separate syntax would be good
-- then you could justify using information notmuch doesn't usually
have -- like file/path names, Received or Delivered-To headers, and so
on.
On the gripping hand, maybe "notmuch tag" should simply be fast enough
that running a bunch of them after "notmuch new" isn't an issue.
Cheers,
aj
--
Anthony Towns <aj at erisian.com.au>
More information about the notmuch
mailing list