summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-11-21 14:27:51 -0700
committerSean Whitton <spwhitton@spwhitton.name>2019-11-21 14:27:51 -0700
commit1eb413da0dc9ca57793e6daec03b6f373151eaff (patch)
treeaa3731f01b352dc8ffc22a179532ec8519243b52
parent693117551a0e21359ac6dbadba443516c56b04df (diff)
downloadmailscripts-1eb413da0dc9ca57793e6daec03b6f373151eaff.tar.gz
notmuch-extract-patch: tolerate text in Subject: before [PATCH nn/mm]
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rw-r--r--debian/changelog9
-rw-r--r--mailscripts.el2
-rwxr-xr-xnotmuch-extract-patch/notmuch-extract-patch2
3 files changed, 11 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 9f6a0d1..773e78f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+mailscripts (0.15-1) UNRELEASED; urgency=medium
+
+ * notmuch-extract-patch: do not require that '[PATCH nn/mm]' appear
+ right at the beginning of the Subject: field.
+ With mail forwarded by the Debian BTS, 'Bug#nnnnnn: ' is prepended to
+ the Subject: field.
+
+ -- Sean Whitton <spwhitton@spwhitton.name> Thu, 21 Nov 2019 14:23:15 -0700
+
mailscripts (0.14-1) unstable; urgency=medium
* email-print-mime-structure: add bash completion (Closes: #944434).
diff --git a/mailscripts.el b/mailscripts.el
index 916aec8..fa4c733 100644
--- a/mailscripts.el
+++ b/mailscripts.el
@@ -1,7 +1,7 @@
;;; mailscripts.el --- functions to access tools in the mailscripts package
;; Author: Sean Whitton <spwhitton@spwhitton.name>
-;; Version: 0.13
+;; Version: 0.15
;; Package-Requires: (notmuch projectile)
;; Copyright (C) 2018, 2019 Sean Whitton
diff --git a/notmuch-extract-patch/notmuch-extract-patch b/notmuch-extract-patch/notmuch-extract-patch
index 4cfda4c..7eff31a 100755
--- a/notmuch-extract-patch/notmuch-extract-patch
+++ b/notmuch-extract-patch/notmuch-extract-patch
@@ -56,7 +56,7 @@ def has_reroll_count(msg, v):
or (v == 1 and not any(entry[0] == 'v' for entry in subject_prefix))
def get_subject_prefix(s):
- match = re.search(r'''^\[(.*PATCH.*)\]''', s)
+ match = re.search(r'''\[(.*PATCH.*)\]''', s)
if match:
return match.group(1).split()