From 082a36d9710eee2eefff523ec71273834124cb13 Mon Sep 17 00:00:00 2001 From: Aurelien Aptel Date: Thu, 26 Jan 2017 11:55:23 +0100 Subject: allow multi-terms notmuch queries Signed-off-by: Aurelien Aptel --- notmuch-extract-patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notmuch-extract-patch b/notmuch-extract-patch index d9c18bb..7ccf4bd 100755 --- a/notmuch-extract-patch +++ b/notmuch-extract-patch @@ -48,9 +48,9 @@ def is_git_patch(msg): return ("git-send-email" in msg['x-mailer'] and match) def main(): - thread_id = sys.argv[1] + query = sys.argv[1:] with tempfile.NamedTemporaryFile() as in_mb_file: - out = subprocess.check_output(['notmuch', 'show', '--format=mbox', thread_id]) + out = subprocess.check_output(['notmuch', 'show', '--format=mbox']+query) in_mb_file.write(out) in_mb_file.flush() -- cgit v1.2.3