send-email: allow aliases in patch header and command script outputs
[gitweb.git] / git-send-email.perl
index a18a7959ed81e9385b490e475bb87bd6875eb0e1..0cac4b0077b9211d1759f4ba9a66dd98c716ebc5 100755 (executable)
@@ -762,6 +762,7 @@ sub file_declares_8bit_cte {
                print "    $f\n";
        }
        $auto_8bit_encoding = ask("Which 8bit encoding should I declare [UTF-8]? ",
+                                 valid_re => qr/.{4}/, confirm_only => 1,
                                  default => "UTF-8");
 }
 
@@ -1534,7 +1535,9 @@ sub send_message {
                ($confirm =~ /^(?:auto|compose)$/ && $compose && $message_num == 1));
        $needs_confirm = "inform" if ($needs_confirm && $confirm_unconfigured && @cc);
 
+       @to = expand_aliases(@to);
        @to = validate_address_list(sanitize_address_list(@to));
+       @cc = expand_aliases(@cc);
        @cc = validate_address_list(sanitize_address_list(@cc));
 
        @to = (@initial_to, @to);