Skip to contentSkip to conversation

StGIT: Support Cc: fields in stg mail --auto

PATCH New Petr Baudis 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 StGIT: Support Cc: fields in stg mail --auto

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.

---

 stgit/commands/mail.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
stgit/commands/mail.py +1 -1
index 151a408..97deb3e 100644
@@ -223,7 +223,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: