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

1 messages from 2008-12-03 to 2008-12-03. Participants: Dan Williams.
Thread: https://gitlist.dev/t/16584

## Dan Williams, 2008-12-03 18:51

Subject: [StGit PATCH] mail: add some commonly used tags to --auto
Message-ID: <20081203185122.6977.91624.stgit@dwillia2-linux.ch.intel.com>
URL: https://gitlist.dev/e/20081203185122.6977.91624.stgit%40dwillia2-linux.ch.intel.com

```
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 stgit/commands/mail.py |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

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:

```
