From: Dan Williams Date: Wed, 3 Dec 2008 21:48:17 +0000 (+0000) Subject: mail: add some commonly used tags to --auto X-Git-Tag: v0.15-rc1~96 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/de41ecc81c56da737900b7623afc314547bfb223?ds=sidebyside;hp=-c mail: add some commonly used tags to --auto Signed-off-by: Dan Williams Signed-off-by: Catalin Marinas --- de41ecc81c56da737900b7623afc314547bfb223 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: