On Sun, 14 Nov 2010 18:01:48 +0100, Matthieu Lemerre <racin at free.fr> wrote: > Now when you consistently label all your mails, you just don't want to > have unclassified mails. That is what we meant by "mail you can't find".
It sounds like this would just as easily be accomplished with a way to search for all messages that don't have any tags. I don't think there's a way to do that at the moment. Carl (on #notmuch) just confirmed that this can only be accomplished by construction the search explicitly. Here's what I came up with: search=$(printf 'not (%s)\n' "$(notmuch search --output=tags '*' | xargs -I'{}' echo tag:'{}' | tr '\n' ' ' | sed 's/ $//' | sed 's/ / or /g')") notmuch search "$search" Someone can probably figure out how to simplify that a bit. I don't think there's an easy way to save a search that's generated on the fly like that. Some elisp magic is probably in order. 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/20101114/efbb2d68/attachment.pgp>