unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Mark Walters <markwalters1009@gmail.com>
To: Olivier Berger <olivier.berger@telecom-sudparis.eu>,
	David Bremner <david@tethera.net>
Cc: notmuch@notmuchmail.org
Subject: Re: tag:deleted messages immediately deleted ?
Date: Fri, 21 Nov 2014 15:08:59 +0000	[thread overview]
Message-ID: <87zjbkwpys.fsf@qmul.ac.uk> (raw)
In-Reply-To: <87d28gd703.fsf@inf-11879.int-evry.fr>

On Fri, 21 Nov 2014, Olivier Berger <olivier.berger@telecom-sudparis.eu> wrote:
> David Bremner <david@tethera.net> writes:
>
>> Olivier Berger <olivier.berger@telecom-sudparis.eu> writes:
>>
>>>
>>> So, I've tried and removed the spam tag from the exclude_tags, and
>>> suddenly, the search in emacs responds with the 981... which means that
>>> most of the deleted ones had the spam tag too.
>>>
>>>
>>> So it means that if one explicitely requests an excluded tag, other
>>> exclude tags still apply. Not sure this is the desirable option : maybe
>>> if one exclusion is waved, then others should too ?
>>>
>>> What do you think ?
>>
>> I'm not sure. What you suggest sounds sensible enough. On the other hand
>> the way it behaves now is precisely as documented; I'm not sure whether
>> this is because of a design choice or ease of implementation. Maybe Mark
>> can comment further on that.  I guess there are even people who
>> like/rely on the current functionality, since there always are ;).

This was definitely a design choice (I think probably by Austin/jrollins) and I
think it makes sense: why would you want to include one include spam
messages when you are searching for deleted messages?

A change would break my setup - not in itself a problem as I setup this
way to make sure I exercised the exclude code. I tag all my notmuch
mailing list mail tag:notmuch and have that as an excluded tag. Then
mailing list results do not clutter up results when I am doing personal
searches.

>>
>
> In any case, there has been a change in the way this worked.

I don't think anyone has touched this code for over two years: git blame
seems to suggest March 2012.

> For the moment, I'm using the following saved search :
>     (tag:deleted or tag:spam) and tag:deleted
> which will display the deleted mails.

I do think it would be nice to have a clear way of turning excludes off
in the emacs frontend. Without a query parser it's not clear what the
best way to do it is: I suggested a hack which allowed --exclude=false
to be passed as part of the search. We could add a toggle to rerun a
search with exclude=false but that doesn't help much for saved searches
or manually entered searches.

Best wishes

Mark

  reply	other threads:[~2014-11-21 15:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-18  9:14 tag:deleted messages immediately deleted ? Olivier Berger
2014-11-18 10:23 ` David Bremner
2014-11-18 13:01   ` Olivier Berger
2014-11-18 17:21     ` David Bremner
2014-11-20 17:11       ` Olivier Berger
2014-11-21  7:57         ` David Bremner
2014-11-21 13:21           ` Olivier Berger
2014-11-21 15:08             ` Mark Walters [this message]
2014-11-25 18:38             ` David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zjbkwpys.fsf@qmul.ac.uk \
    --to=markwalters1009@gmail.com \
    --cc=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    --cc=olivier.berger@telecom-sudparis.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).