Re: [PATCH] nmbug: allow excluded messages

Subject: Re: [PATCH] nmbug: allow excluded messages

Date: Sat, 22 Oct 2016 14:00:57 +0300

To: Mark Walters, notmuch@notmuchmail.org

Cc:

From: Tomi Ollila


On Sat, Oct 22 2016, Mark Walters <markwalters1009@gmail.com> wrote:

> This makes nmbug work even if the notmuch mailing list messages are
> excluded (i.e., have a tag in the excluded tags list).
> ---
>
> I keep all my mailing list emails under an excluded tag (initially
> this was to test the exclude code thoroughly, but I find it convenient
> to keep day to day email and mailing list email separate). However,
> this confuses nmbug -- would the following patch be acceptable?

+1

Tomi


>
> (I think this is the only place it is needed, but I don't use nmbug
> much so I haven't tested thoroughly.)
>
> Best wishes
>
> Mark
>
> devel/nmbug/nmbug | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/devel/nmbug/nmbug b/devel/nmbug/nmbug
> index 6febf16..dc565c4 100755
> --- a/devel/nmbug/nmbug
> +++ b/devel/nmbug/nmbug
> @@ -580,7 +580,7 @@ def get_status():
>      maybe_deleted = _diff_index(index=index, filter='D')
>      for id, tags in maybe_deleted.items():
>          (_, stdout, stderr) = _spawn(
> -            args=['notmuch', 'search', '--output=files', 'id:{0}'.format(id)],
> +            args=['notmuch', 'search', '--output=files', '--exclude=false', 'id:{0}'.format(id)],
>              stdout=_subprocess.PIPE,
>              wait=True)
>          if stdout:
> -- 
> 2.1.4
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch

Thread: