[PATCH] Automatically exclude tags in notmuch-show

2012-01-24 Thread Mark Walters
On Sun, 22 Jan 2012 20:52:22 -0500, Austin Clements wrote: > Quoth Mark Walters on Jan 23 at 1:13 am: > > On Sun, 22 Jan 2012 13:16:09 -0500, Austin Clements > > wrote: > > > Quoth myself on Jan 20 at 12:18 pm: > > > > Quoth Mark Walters on Jan 20 at 12:10 am: > > > > > > > > > > Ok Having

Re: [PATCH] Automatically exclude tags in notmuch-show

2012-01-24 Thread Mark Walters
On Sun, 22 Jan 2012 20:52:22 -0500, Austin Clements amdra...@mit.edu wrote: Quoth Mark Walters on Jan 23 at 1:13 am: On Sun, 22 Jan 2012 13:16:09 -0500, Austin Clements amdra...@mit.edu wrote: Quoth myself on Jan 20 at 12:18 pm: Quoth Mark Walters on Jan 20 at 12:10 am:

Re: [PATCH] Automatically exclude tags in notmuch-show

2012-01-24 Thread Austin Clements
Quoth Mark Walters on Jan 24 at 1:05 am: On Sun, 22 Jan 2012 20:52:22 -0500, Austin Clements amdra...@mit.edu wrote: Quoth Mark Walters on Jan 23 at 1:13 am: On Sun, 22 Jan 2012 13:16:09 -0500, Austin Clements amdra...@mit.edu wrote: Quoth myself on Jan 20 at 12:18 pm: Quoth

[PATCH] Automatically exclude tags in notmuch-show

2012-01-23 Thread Austin Clements
Quoth Mark Walters on Jan 24 at 1:05 am: > > On Sun, 22 Jan 2012 20:52:22 -0500, Austin Clements > wrote: > > Quoth Mark Walters on Jan 23 at 1:13 am: > > > On Sun, 22 Jan 2012 13:16:09 -0500, Austin Clements > > > wrote: > > > > Quoth myself on Jan 20 at 12:18 pm: > > > > > Quoth Mark

[PATCH] Automatically exclude tags in notmuch-show

2012-01-23 Thread Mark Walters
On Sun, 22 Jan 2012 13:16:09 -0500, Austin Clements wrote: > Quoth myself on Jan 20 at 12:18 pm: > > Quoth Mark Walters on Jan 20 at 12:10 am: > > > > > > Ok Having said this is trivial I have found a problem. What should > > > notmuch do if you do something like > > > > > > notmuch show id: >

[PATCH] Automatically exclude tags in notmuch-show

2012-01-22 Thread Austin Clements
Quoth Mark Walters on Jan 23 at 1:13 am: > On Sun, 22 Jan 2012 13:16:09 -0500, Austin Clements > wrote: > > Quoth myself on Jan 20 at 12:18 pm: > > > Quoth Mark Walters on Jan 20 at 12:10 am: > > > > > > > > Ok Having said this is trivial I have found a problem. What should > > > > notmuch do

[PATCH] Automatically exclude tags in notmuch-show

2012-01-22 Thread Mark Walters
On Sun, 22 Jan 2012 13:16:09 -0500, Austin Clements wrote: > Quoth myself on Jan 20 at 12:18 pm: > > Quoth Mark Walters on Jan 20 at 12:10 am: > > > > > > Ok Having said this is trivial I have found a problem. What should > > > notmuch do if you do something like > > > > > > notmuch show id: >

[PATCH] Automatically exclude tags in notmuch-show

2012-01-22 Thread Austin Clements
Quoth myself on Jan 20 at 12:18 pm: > Quoth Mark Walters on Jan 20 at 12:10 am: > > > > Ok Having said this is trivial I have found a problem. What should > > notmuch do if you do something like > > > > notmuch show id: > > and that message is marked with a deleted tag? To be consistent with the

[PATCH] Automatically exclude tags in notmuch-show

2012-01-22 Thread Austin Clements
Quoth Mark Walters on Jan 22 at 12:38 am: > > On Fri, 20 Jan 2012 12:18:01 -0500, Austin Clements > wrote: > > > > Oh dear. > > > > Well, here's one idea. Instead of doing a single thread query in > > show, do a thread query without the exclusions and then a message > > query with the

[PATCH] Automatically exclude tags in notmuch-show

2012-01-22 Thread Mark Walters
On Fri, 20 Jan 2012 12:18:01 -0500, Austin Clements wrote: > > Oh dear. > > Well, here's one idea. Instead of doing a single thread query in > show, do a thread query without the exclusions and then a message > query with the exclusions. Output all of the messages from the first > query, but

Re: [PATCH] Automatically exclude tags in notmuch-show

2012-01-22 Thread Austin Clements
Quoth Mark Walters on Jan 22 at 12:38 am: On Fri, 20 Jan 2012 12:18:01 -0500, Austin Clements amdra...@mit.edu wrote: Oh dear. Well, here's one idea. Instead of doing a single thread query in show, do a thread query without the exclusions and then a message query with the

Re: [PATCH] Automatically exclude tags in notmuch-show

2012-01-22 Thread Austin Clements
Quoth myself on Jan 20 at 12:18 pm: Quoth Mark Walters on Jan 20 at 12:10 am: Ok Having said this is trivial I have found a problem. What should notmuch do if you do something like notmuch show id:some-id and that message is marked with a deleted tag? To be consistent with the

Re: [PATCH] Automatically exclude tags in notmuch-show

2012-01-22 Thread Mark Walters
On Sun, 22 Jan 2012 13:16:09 -0500, Austin Clements amdra...@mit.edu wrote: Quoth myself on Jan 20 at 12:18 pm: Quoth Mark Walters on Jan 20 at 12:10 am: Ok Having said this is trivial I have found a problem. What should notmuch do if you do something like notmuch show

Re: [PATCH] Automatically exclude tags in notmuch-show

2012-01-22 Thread Mark Walters
On Sun, 22 Jan 2012 13:16:09 -0500, Austin Clements amdra...@mit.edu wrote: Quoth myself on Jan 20 at 12:18 pm: Quoth Mark Walters on Jan 20 at 12:10 am: Ok Having said this is trivial I have found a problem. What should notmuch do if you do something like notmuch show

Re: [PATCH] Automatically exclude tags in notmuch-show

2012-01-22 Thread Austin Clements
Quoth Mark Walters on Jan 23 at 1:13 am: On Sun, 22 Jan 2012 13:16:09 -0500, Austin Clements amdra...@mit.edu wrote: Quoth myself on Jan 20 at 12:18 pm: Quoth Mark Walters on Jan 20 at 12:10 am: Ok Having said this is trivial I have found a problem. What should notmuch do if

Re: [PATCH] Automatically exclude tags in notmuch-show

2012-01-21 Thread Mark Walters
On Fri, 20 Jan 2012 12:18:01 -0500, Austin Clements amdra...@mit.edu wrote: Oh dear. Well, here's one idea. Instead of doing a single thread query in show, do a thread query without the exclusions and then a message query with the exclusions. Output all of the messages from the first

[PATCH] Automatically exclude tags in notmuch-show

2012-01-20 Thread Austin Clements
Quoth Mark Walters on Jan 20 at 12:10 am: > > Ok Having said this is trivial I have found a problem. What should > notmuch do if you do something like > > notmuch show id: > and that message is marked with a deleted tag? To be consistent with the > other cases (where a deleted message is in a

[PATCH] Automatically exclude tags in notmuch-show

2012-01-20 Thread Pieter Praet
On Thu, 19 Jan 2012 17:59:10 -0500, Austin Clements wrote: > LGTM, but should definitely come with a test. > [...] > Also, this won't commute with Pieter's patch > (id:"1327000744-25463-2-git-send-email-pieter at praet.org"), so one or > the other will have to get updated. > No problem, I'll

[PATCH] Automatically exclude tags in notmuch-show

2012-01-20 Thread Mark Walters
Ok Having said this is trivial I have found a problem. What should notmuch do if you do something like notmuch show id: and that message is marked with a deleted tag? To be consistent with the other cases (where a deleted message is in a matched thread) we might want to return the message with

Re: [PATCH] Automatically exclude tags in notmuch-show

2012-01-20 Thread Austin Clements
Quoth Mark Walters on Jan 20 at 12:10 am: Ok Having said this is trivial I have found a problem. What should notmuch do if you do something like notmuch show id:some-id and that message is marked with a deleted tag? To be consistent with the other cases (where a deleted message is in a

[PATCH] Automatically exclude tags in notmuch-show

2012-01-19 Thread Mark Walters
Add the use of auto_exclude_tags in notmuch-show.c. As with Austin's patch (commit 42a907992823030f070fc395a174f779998ca6f5) it just adds the excluded tags to the query so the excluded messages will still appear in the emacs interface, but as a single header line rather than as a matching

[PATCH] Automatically exclude tags in notmuch-show

2012-01-19 Thread Austin Clements
LGTM, but should definitely come with a test. Also, this won't commute with Pieter's patch (id:"1327000744-25463-2-git-send-email-pieter at praet.org"), so one or the other will have to get updated. Quoth Mark Walters on Jan 19 at 10:03 pm: > Add the use of auto_exclude_tags in notmuch-show.c.

[PATCH] Automatically exclude tags in notmuch-show

2012-01-19 Thread Mark Walters
Add the use of auto_exclude_tags in notmuch-show.c. As with Austin's patch (commit 42a907992823030f070fc395a174f779998ca6f5) it just adds the excluded tags to the query so the excluded messages will still appear in the emacs interface, but as a single header line rather than as a matching

Re: [PATCH] Automatically exclude tags in notmuch-show

2012-01-19 Thread Austin Clements
LGTM, but should definitely come with a test. Also, this won't commute with Pieter's patch (id:1327000744-25463-2-git-send-email-pie...@praet.org), so one or the other will have to get updated. Quoth Mark Walters on Jan 19 at 10:03 pm: Add the use of auto_exclude_tags in notmuch-show.c. As

Re: [PATCH] Automatically exclude tags in notmuch-show

2012-01-19 Thread Pieter Praet
On Thu, 19 Jan 2012 17:59:10 -0500, Austin Clements amdra...@mit.edu wrote: LGTM, but should definitely come with a test. [...] Also, this won't commute with Pieter's patch (id:1327000744-25463-2-git-send-email-pie...@praet.org), so one or the other will have to get updated. No problem,

Re: [PATCH] Automatically exclude tags in notmuch-show

2012-01-19 Thread Mark Walters
Ok Having said this is trivial I have found a problem. What should notmuch do if you do something like notmuch show id:some-id and that message is marked with a deleted tag? To be consistent with the other cases (where a deleted message is in a matched thread) we might want to return the message