From f6b282d91af581178150e36369e7fe03a9c813d4 Mon Sep 17 00:00:00 2001 From: Aurelien Aptel Date: Thu, 26 Jan 2017 11:56:05 +0100 Subject: forget x-mailer header, only look for diffs Signed-off-by: Aurelien Aptel --- notmuch-extract-patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'notmuch-extract-patch') diff --git a/notmuch-extract-patch b/notmuch-extract-patch index 7ccf4bd..df87a6c 100755 --- a/notmuch-extract-patch +++ b/notmuch-extract-patch @@ -45,7 +45,8 @@ def is_git_patch(msg): # we want to skip cover letters, hence why we look for @@ body = get_body(msg) match = re.search(r'''\n@@ [0-9 +,-]+ @@''', body) - return ("git-send-email" in msg['x-mailer'] and match) + # return ("git-send-email" in msg['x-mailer'] and match) + return match def main(): query = sys.argv[1:] -- cgit v1.2.3