[PATCH] nmbug: allow excluded messages

Mark Walters markwalters1009 at gmail.com
Sat Oct 22 00:59:40 PDT 2016


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?

(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



More information about the notmuch mailing list