StGIT: Support Cc: fields in stg mail --auto
authorPetr Baudis <pasky@suse.cz>
Tue, 22 May 2007 20:45:53 +0000 (21:45 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Tue, 22 May 2007 20:46:10 +0000 (21:46 +0100)
Aside of Signed-off-by and Acked-by fields, Cc fields may occur in the
message footer; include them in the auto-composed mail Cc list.

Signed-off-by: Petr Baudis <pasky@suse.cz>
stgit/commands/mail.py

index 1ca6ba2..b95014c 100644 (file)
@@ -226,7 +226,7 @@ def __get_signers_list(msg):
     """
     addr_list = []
 
-    r = re.compile('^(signed-off-by|acked-by):\s+(.+)$', re.I)
+    r = re.compile('^(signed-off-by|acked-by|cc):\s+(.+)$', re.I)
     for line in msg.split('\n'):
         m = r.match(line)
         if m: