git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] git-send-email improvements
@ 2007-03-11 17:19 Avi Kivity
  2007-03-11 17:19 ` [PATCH 1/2] git-send-email: Document configuration options Avi Kivity
  2007-03-11 17:19 ` [PATCH 2/2] git-send-email: configurable bcc and chain-reply-to Avi Kivity
  0 siblings, 2 replies; 3+ messages in thread
From: Avi Kivity @ 2007-03-11 17:19 UTC (permalink / raw)
  To: git, Ryan Anderson

The following two patches document the git-send-email aliases coniguration
variables, and add some more config variables to make usage a little easier.
Please consider applying.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] git-send-email: Document configuration options
  2007-03-11 17:19 [PATCH 0/2] git-send-email improvements Avi Kivity
@ 2007-03-11 17:19 ` Avi Kivity
  2007-03-11 17:19 ` [PATCH 2/2] git-send-email: configurable bcc and chain-reply-to Avi Kivity
  1 sibling, 0 replies; 3+ messages in thread
From: Avi Kivity @ 2007-03-11 17:19 UTC (permalink / raw)
  To: git, Ryan Anderson; +Cc: Avi Kivity

Wishing to implement an email aliases file, I found that they were already
implmented.  Document them for the next user.

Signed-off-by: Avi Kivity <avi@qumranet.com>
---
 Documentation/git-send-email.txt |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
index 35b0104..367646e 100644
--- a/Documentation/git-send-email.txt
+++ b/Documentation/git-send-email.txt
@@ -91,6 +91,19 @@ The --cc option must be repeated for each user you want on the cc list.
 The --to option must be repeated for each user you want on the to list.
 
 
+CONFIGURATION
+-------------
+sendemail.aliasesfile::
+	To avoid typing long email addresses, point this to one or more
+	email aliases files.  You must also supply 'sendemail.aliasfiletype'.
+
+sendemail.aliasfiletype::
+	Format of the file(s) specified in sendemail.aliasesfile. Must be
+	one of 'mutt', 'mailrc', 'pine', or 'gnus'.
+
+sendemail.smtpserver::
+	Default smtp server to use.
+
 Author
 ------
 Written by Ryan Anderson <ryan@michonline.com>
-- 
1.5.0.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] git-send-email: configurable bcc and chain-reply-to
  2007-03-11 17:19 [PATCH 0/2] git-send-email improvements Avi Kivity
  2007-03-11 17:19 ` [PATCH 1/2] git-send-email: Document configuration options Avi Kivity
@ 2007-03-11 17:19 ` Avi Kivity
  1 sibling, 0 replies; 3+ messages in thread
From: Avi Kivity @ 2007-03-11 17:19 UTC (permalink / raw)
  To: git, Ryan Anderson; +Cc: Avi Kivity

Chain-reply-to is a personal perference, and is unlikely to change from
patchset to patchset.  Similarly, bcc is likely to have the same values
every invocation is one likes to bcc oneself.

So, allow both to be set via configuration variables.

Signed-off-by: Avi Kivity <avi@qumranet.com>
---
 Documentation/git-send-email.txt |   10 +++++++++-
 git-send-email.perl              |   10 ++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
index 367646e..9b3aabb 100644
--- a/Documentation/git-send-email.txt
+++ b/Documentation/git-send-email.txt
@@ -40,7 +40,8 @@ The --cc option must be repeated for each user you want on the cc list.
 	the first will be sent as replies to the first email sent.  When using
 	this, it is recommended that the first file given be an overview of the
 	entire patch series.
-	Default is --chain-reply-to
+	Default is the value of the 'sendemail.chainreplyto' configuration
+	value; if that is unspecified, default to --chain-reply-to.
 
 --compose::
 	Use $EDITOR to edit an introductory message for the
@@ -101,6 +102,13 @@ sendemail.aliasfiletype::
 	Format of the file(s) specified in sendemail.aliasesfile. Must be
 	one of 'mutt', 'mailrc', 'pine', or 'gnus'.
 
+sendemail.bcc::
+	Email address (or alias) to always bcc.
+
+sendemail.chainreplyto::
+	Boolean value specifying the default to the '--chain_reply_to'
+	parameter.
+
 sendemail.smtpserver::
 	Default smtp server to use.
 
diff --git a/git-send-email.perl b/git-send-email.perl
index a71a192..6989c02 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -149,6 +149,16 @@ if ($@) {
 	$term = new FakeTerm "$@: going non-interactive";
 }
 
+my $def_chain = $repo->config_boolean('sendemail.chainreplyto');
+if ($def_chain and $def_chain eq 'false') {
+    $chain_reply_to = 0;
+}
+
+@bcclist = $repo->config('sendemail.bcc');
+if (!@bcclist or !$bcclist[0]) {
+    @bcclist = ();
+}
+
 # Begin by accumulating all the variables (defined above), that we will end up
 # needing, first, from the command line:
 
-- 
1.5.0.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-03-11 17:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-11 17:19 [PATCH 0/2] git-send-email improvements Avi Kivity
2007-03-11 17:19 ` [PATCH 1/2] git-send-email: Document configuration options Avi Kivity
2007-03-11 17:19 ` [PATCH 2/2] git-send-email: configurable bcc and chain-reply-to Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).