Re: [PATCH v4 2/3] emacs: `notmuch-show-buttonize-links' only `notmuch-show's a message if it exists

Subject: Re: [PATCH v4 2/3] emacs: `notmuch-show-buttonize-links' only `notmuch-show's a message if it exists

Date: Wed, 25 Jan 2012 01:41:47 +0100

To: Mark Walters, Mark Anderson, Aaron Ecay, David Edmondson, Jameson Graef Rollins, Austin Clements

Cc: Notmuch Mail

From: Pieter Praet

On Sun, 22 Jan 2012 11:10:02 +0000, Mark Walters <> wrote:
> > * emacs/notmuch-show.el (notmuch-show-if-found): new function that only shows
> >   a message/thread if present in the database and otherwise returns an error.
> I like this in principle but it interacts awkwardly with the automatic tag
> exclusion. If the id:<message-id> matches a message with an excluded tag
> then notmuch-show-if-found will not let you view it, but if you typed the
> same search in a search field it would show you the message. 
> Note notmuch show currently does not currently respect excluded tags (see
> id:""), and this is not completely trivial to
> fix since it is not clear quite what its behaviour should be in some
> corner cases.
> Perhaps we could have an option like "--include-all" to notmuch
> search/count to tell it not to apply the exclusions. On the other hand
> that might also be useful as something the user can type in a search box
> so a special search term (eg include:all) might be better.

Hmm, interesting...

Sorry I haven't taken the time to have a look at your patch series yet.
(I probably wouldn't have anything useful to contribute anyway...)

I'll be taking a stab at fixing this when the exclusion-dust settles.

Thanks for pointing it out!

> Best wishes
> Mark