diff options
author | Aurelien Aptel <aaptel@suse.com> | 2017-01-26 11:56:05 +0100 |
---|---|---|
committer | Aurelien Aptel <aaptel@suse.com> | 2017-01-26 11:56:05 +0100 |
commit | f6b282d91af581178150e36369e7fe03a9c813d4 (patch) | |
tree | 04fca6a233b25ca87c29491d2c392114d30e6fec /notmuch-extract-patch | |
parent | 082a36d9710eee2eefff523ec71273834124cb13 (diff) | |
download | mailscripts-f6b282d91af581178150e36369e7fe03a9c813d4.tar.gz |
forget x-mailer header, only look for diffs
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Diffstat (limited to 'notmuch-extract-patch')
-rwxr-xr-x | notmuch-extract-patch | 3 |
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:] |