{"thread":{"id":"7196","subject":"[PATCH 1/2] git-send-email: Document configuration options","startedAt":"2007-03-11T17:19:42Z","lastAt":"2007-03-11T17:19:44Z","messageCount":3,"participants":["Avi Kivity"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"36827","messageId":"11736335842565-git-send-email-avi@qumranet.com","threadId":"7196","inReplyTo":null,"subject":"[PATCH 0/2] git-send-email improvements","fromName":"Avi Kivity","fromEmail":"avi@qumranet.com","sentAt":"2007-03-11T17:19:42Z","receivedAt":"2007-03-11T17:19:42Z","isPatch":true,"sender":{"key":"avi@qumranet.com","avatar":null},"body":"The following two patches document the git-send-email aliases coniguration\nvariables, and add some more config variables to make usage a little easier.\nPlease consider applying.\n"},{"id":"36826","messageId":"1173633584748-git-send-email-avi@qumranet.com","threadId":"7196","inReplyTo":"11736335842565-git-send-email-avi@qumranet.com","subject":"[PATCH 1/2] git-send-email: Document configuration options","fromName":"Avi Kivity","fromEmail":"avi@qumranet.com","sentAt":"2007-03-11T17:19:43Z","receivedAt":"2007-03-11T17:19:43Z","isPatch":true,"sender":{"key":"avi@qumranet.com","avatar":null},"body":"Wishing to implement an email aliases file, I found that they were already\nimplmented.  Document them for the next user.\n\nSigned-off-by: Avi Kivity <avi@qumranet.com>\n---\n Documentation/git-send-email.txt |   13 +++++++++++++\n 1 files changed, 13 insertions(+), 0 deletions(-)\n\ndiff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt\nindex 35b0104..367646e 100644\n--- a/Documentation/git-send-email.txt\n+++ b/Documentation/git-send-email.txt\n@@ -91,6 +91,19 @@ The --cc option must be repeated for each user you want on the cc list.\n The --to option must be repeated for each user you want on the to list.\n \n \n+CONFIGURATION\n+-------------\n+sendemail.aliasesfile::\n+\tTo avoid typing long email addresses, point this to one or more\n+\temail aliases files.  You must also supply 'sendemail.aliasfiletype'.\n+\n+sendemail.aliasfiletype::\n+\tFormat of the file(s) specified in sendemail.aliasesfile. Must be\n+\tone of 'mutt', 'mailrc', 'pine', or 'gnus'.\n+\n+sendemail.smtpserver::\n+\tDefault smtp server to use.\n+\n Author\n ------\n Written by Ryan Anderson <ryan@michonline.com>\n-- \n1.5.0.2\n"},{"id":"36828","messageId":"11736335842187-git-send-email-avi@qumranet.com","threadId":"7196","inReplyTo":"11736335842565-git-send-email-avi@qumranet.com","subject":"[PATCH 2/2] git-send-email: configurable bcc and chain-reply-to","fromName":"Avi Kivity","fromEmail":"avi@qumranet.com","sentAt":"2007-03-11T17:19:44Z","receivedAt":"2007-03-11T17:19:44Z","isPatch":true,"sender":{"key":"avi@qumranet.com","avatar":null},"body":"Chain-reply-to is a personal perference, and is unlikely to change from\npatchset to patchset.  Similarly, bcc is likely to have the same values\nevery invocation is one likes to bcc oneself.\n\nSo, allow both to be set via configuration variables.\n\nSigned-off-by: Avi Kivity <avi@qumranet.com>\n---\n Documentation/git-send-email.txt |   10 +++++++++-\n git-send-email.perl              |   10 ++++++++++\n 2 files changed, 19 insertions(+), 1 deletions(-)\n\ndiff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt\nindex 367646e..9b3aabb 100644\n--- a/Documentation/git-send-email.txt\n+++ b/Documentation/git-send-email.txt\n@@ -40,7 +40,8 @@ The --cc option must be repeated for each user you want on the cc list.\n \tthe first will be sent as replies to the first email sent.  When using\n \tthis, it is recommended that the first file given be an overview of the\n \tentire patch series.\n-\tDefault is --chain-reply-to\n+\tDefault is the value of the 'sendemail.chainreplyto' configuration\n+\tvalue; if that is unspecified, default to --chain-reply-to.\n \n --compose::\n \tUse $EDITOR to edit an introductory message for the\n@@ -101,6 +102,13 @@ sendemail.aliasfiletype::\n \tFormat of the file(s) specified in sendemail.aliasesfile. Must be\n \tone of 'mutt', 'mailrc', 'pine', or 'gnus'.\n \n+sendemail.bcc::\n+\tEmail address (or alias) to always bcc.\n+\n+sendemail.chainreplyto::\n+\tBoolean value specifying the default to the '--chain_reply_to'\n+\tparameter.\n+\n sendemail.smtpserver::\n \tDefault smtp server to use.\n \ndiff --git a/git-send-email.perl b/git-send-email.perl\nindex a71a192..6989c02 100755\n--- a/git-send-email.perl\n+++ b/git-send-email.perl\n@@ -149,6 +149,16 @@ if ($@) {\n \t$term = new FakeTerm \"$@: going non-interactive\";\n }\n \n+my $def_chain = $repo->config_boolean('sendemail.chainreplyto');\n+if ($def_chain and $def_chain eq 'false') {\n+    $chain_reply_to = 0;\n+}\n+\n+@bcclist = $repo->config('sendemail.bcc');\n+if (!@bcclist or !$bcclist[0]) {\n+    @bcclist = ();\n+}\n+\n # Begin by accumulating all the variables (defined above), that we will end up\n # needing, first, from the command line:\n \n-- \n1.5.0.2\n"}]}