summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Aptel <aaptel@suse.com>2017-01-26 11:56:05 +0100
committerAurelien Aptel <aaptel@suse.com>2017-01-26 11:56:05 +0100
commitf6b282d91af581178150e36369e7fe03a9c813d4 (patch)
tree04fca6a233b25ca87c29491d2c392114d30e6fec
parent082a36d9710eee2eefff523ec71273834124cb13 (diff)
downloadmailscripts-f6b282d91af581178150e36369e7fe03a9c813d4.tar.gz
forget x-mailer header, only look for diffs
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
-rwxr-xr-xnotmuch-extract-patch3
1 files changed, 2 insertions, 1 deletions
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:]