git-send-email: Add --quiet to reduce some of the chatter when sending emails.
Signed-off-by: Ryan Anderson <ryan@michonline.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
d366c70376
commit
30d08b34aa
@ -34,7 +34,7 @@ my $compose_filename = ".msg.$$";
|
|||||||
my (@to,@cc,$initial_reply_to,$initial_subject,@files,$from,$compose);
|
my (@to,@cc,$initial_reply_to,$initial_subject,@files,$from,$compose);
|
||||||
|
|
||||||
# Behavior modification variables
|
# Behavior modification variables
|
||||||
my ($chain_reply_to, $smtp_server) = (1, "localhost");
|
my ($chain_reply_to, $smtp_server, $quiet) = (1, "localhost", 0);
|
||||||
|
|
||||||
# Example reply to:
|
# Example reply to:
|
||||||
#$initial_reply_to = ''; #<20050203173208.GA23964@foobar.com>';
|
#$initial_reply_to = ''; #<20050203173208.GA23964@foobar.com>';
|
||||||
@ -51,6 +51,7 @@ my $rc = GetOptions("from=s" => \$from,
|
|||||||
"chain-reply-to!" => \$chain_reply_to,
|
"chain-reply-to!" => \$chain_reply_to,
|
||||||
"smtp-server=s" => \$smtp_server,
|
"smtp-server=s" => \$smtp_server,
|
||||||
"compose" => \$compose,
|
"compose" => \$compose,
|
||||||
|
"quiet" => \$quiet,
|
||||||
);
|
);
|
||||||
|
|
||||||
# Now, let's fill any that aren't set in with defaults:
|
# Now, let's fill any that aren't set in with defaults:
|
||||||
@ -267,8 +268,10 @@ sub send_message
|
|||||||
|
|
||||||
sendmail(%mail) or die $Mail::Sendmail::error;
|
sendmail(%mail) or die $Mail::Sendmail::error;
|
||||||
|
|
||||||
|
unless ($quiet) {
|
||||||
print "OK. Log says:\n", $Mail::Sendmail::log;
|
print "OK. Log says:\n", $Mail::Sendmail::log;
|
||||||
print "\n\n"
|
print "\n\n"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user