If a receiver is only copied on the a single patch out of a larger series she may not have the necessary context to judge the patch. Auto cc her on the cover letter.
Signed-off-by: Dan Williams <[email protected]> --- stgit/commands/mail.py | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/stgit/commands/mail.py b/stgit/commands/mail.py index e641634981d6..d986b805dbc4 100644 --- a/stgit/commands/mail.py +++ b/stgit/commands/mail.py @@ -534,8 +534,18 @@ def __build_cover(tmpl, msg_id, options, patches): except Exception, ex: raise CmdException, 'template parsing error: %s' % str(ex) + extra_cc = [] + if options.auto: + for patch in patches: + p = crt_series.get_patch(patch) + if p.get_description(): + descr = p.get_description().strip() + extra_cc.extend(__get_signers_list(descr)) + extra_cc = list(set(extra_cc)) + + if not options.git: - __build_address_headers(msg, options) + __build_address_headers(msg, options, extra_cc) __build_extra_headers(msg, msg_id, options.in_reply_to) __encode_message(msg) _______________________________________________ stgit-users mailing list [email protected] https://mail.gna.org/listinfo/stgit-users
