Skip to contentSkip to conversation

mail: add some commonly used tags to --auto

PATCH New Dan Williams 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mail: add some commonly used tags to --auto

---
 stgit/commands/mail.py |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
stgit/commands/mail.py +11 -2
index 72d0133..2dd88c3 100644
@@ -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: