提交 061ed420 编写于 作者: J Junio C Hamano

Merge branch 'bs/sendemail-tighten-anything-by'

The recently added feature to add addresses that are on
anything-by: trailers in 'git send-email' was found to be way too
eager and considered nonsense strings as if they can be legitimate
beginning of *-by: trailer.  This has been tightened.

* bs/sendemail-tighten-anything-by:
  send-email: don't cc *-by lines with '-' prefix
...@@ -1699,7 +1699,7 @@ sub process_file { ...@@ -1699,7 +1699,7 @@ sub process_file {
# Now parse the message body # Now parse the message body
while(<$fh>) { while(<$fh>) {
$message .= $_; $message .= $_;
if (/^([a-z-]*-by|Cc): (.*)/i) { if (/^([a-z][a-z-]*-by|Cc): (.*)/i) {
chomp; chomp;
my ($what, $c) = ($1, $2); my ($what, $c) = ($1, $2);
# strip garbage for the address we'll use: # strip garbage for the address we'll use:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册