threads / patch / 16584

patchmail: add some commonly used tags to --auto

Subject: [StGit PATCH] mail: add some commonly used tags to --auto

## tl;dr

One message between Dec 3, 2008 and Dec 3, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Dan Williams· Dec 3, 2008, 18:51 UTC · lore
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 stgit/commands/mail.py |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
Show changes to stgit/commands/mail.py +11 −2
diff --git a/stgit/commands/mail.py b/stgit/commands/mail.py
index 72d0133..2dd88c3 100644
--- a/stgit/commands/mail.py
+++ b/stgit/commands/mail.py
@@ -283,8 +283,17 @@ def __get_signers_list(msg):
     acked-by lines in the message.
     """
     addr_list = []
-
-    r = re.compile('^(signed-off-by|acked-by|cc):\s+(.+)$', re.I)
+    tags = '%s|%s|%s|%s|%s|%s|%s' % (
+            'signed-off-by',
+            'acked-by',
+            'cc',
+            'reviewed-by',
+            'reported-by',
+            'tested-by',
+            'reported-and-tested-by')
+    regex = '^(%s):\s+(.+)$' % tags
+
+    r = re.compile(regex, re.I)
     for line in msg.split('\n'):
         m = r.match(line)
         if m:

← back to recent threads