From 1eb413da0dc9ca57793e6daec03b6f373151eaff Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 21 Nov 2019 14:27:51 -0700 Subject: notmuch-extract-patch: tolerate text in Subject: before [PATCH nn/mm] Signed-off-by: Sean Whitton --- debian/changelog | 9 +++++++++ mailscripts.el | 2 +- notmuch-extract-patch/notmuch-extract-patch | 2 +- 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 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 -;; 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() -- cgit v1.2.3