Skip to content

Commit

Permalink
git-send-email: Add --quiet to reduce some of the chatter when sendin…
Browse files Browse the repository at this point in the history
…g emails.

Signed-off-by: Ryan Anderson <ryan@michonline.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Ryan Anderson authored and Junio C Hamano committed Feb 3, 2006
1 parent d366c70 commit 30d08b3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
my (@to,@cc,$initial_reply_to,$initial_subject,@files,$from,$compose);

# Behavior modification variables
my ($chain_reply_to, $smtp_server) = (1, "localhost");
my ($chain_reply_to, $smtp_server, $quiet) = (1, "localhost", 0);

# Example reply to:
#$initial_reply_to = ''; #<20050203173208.GA23964@foobar.com>';
Expand All @@ -51,6 +51,7 @@
"chain-reply-to!" => \$chain_reply_to,
"smtp-server=s" => \$smtp_server,
"compose" => \$compose,
"quiet" => \$quiet,
);

# Now, let's fill any that aren't set in with defaults:
Expand Down Expand Up @@ -267,8 +268,10 @@ sub send_message

sendmail(%mail) or die $Mail::Sendmail::error;

print "OK. Log says:\n", $Mail::Sendmail::log;
print "\n\n"
unless ($quiet) {
print "OK. Log says:\n", $Mail::Sendmail::log;
print "\n\n"
}
}


Expand Down

0 comments on commit 30d08b3

Please sign in to comment.