{"thread":{"id":"43383","subject":"Re: [PATCH 1/2] git-send-email: Document support for local sendmail instead of SMTP server","startedAt":"2006-10-29T19:31:38Z","lastAt":"2006-10-29T20:37:48Z","messageCount":4,"participants":["Ryan Anderson","Sergey Vlasov"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"298156","messageId":"11621502993406-git-send-email-vsu@altlinux.ru","threadId":"43383","inReplyTo":null,"subject":"[PATCH 1/2] git-send-email: Document support for local sendmail instead of SMTP server","fromName":"Sergey Vlasov","fromEmail":"vsu@altlinux.ru","sentAt":"2006-10-29T19:31:38Z","receivedAt":"2006-10-29T19:31:38Z","isPatch":true,"sender":{"key":"vsu@altlinux.ru","avatar":"https://avatars.githubusercontent.com/u/616082?v=4"},"body":"Fix the --smtp-server option description to match reality.\n\nSigned-off-by: Sergey Vlasov <vsu@altlinux.ru>\n---\n Documentation/git-send-email.txt |    7 +++++--\n 1 files changed, 5 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt\nindex 481b3f5..ec0e201 100644\n--- a/Documentation/git-send-email.txt\n+++ b/Documentation/git-send-email.txt\n@@ -66,8 +66,11 @@ The options available are:\n \tall that is output.\n \n --smtp-server::\n-\tIf set, specifies the outgoing SMTP server to use.  Defaults to\n-\tlocalhost.\n+\tIf set, specifies the outgoing SMTP server to use.  A full\n+\tpathname of a sendmail-like program can be specified instead;\n+\tthe program must support the `-i` option.  Defaults to\n+\t`/usr/sbin/sendmail` or `/usr/lib/sendmail` if such program is\n+\tavailable, or to `localhost` otherwise.\n \n --subject::\n    \tSpecify the initial subject of the email thread.\n-- \n1.4.3.3.ge502\n"},{"id":"296420","messageId":"11621503001930-git-send-email-vsu@altlinux.ru","threadId":"43383","inReplyTo":"11621502993406-git-send-email-vsu@altlinux.ru","subject":"[PATCH 2/2] git-send-email: Read the default SMTP server from the GIT config file","fromName":"Sergey Vlasov","fromEmail":"vsu@altlinux.ru","sentAt":"2006-10-29T19:31:39Z","receivedAt":"2006-10-29T19:31:39Z","isPatch":true,"sender":{"key":"vsu@altlinux.ru","avatar":"https://avatars.githubusercontent.com/u/616082?v=4"},"body":"Make the default value for --smtp-server configurable through the\n'sendemail.smtpserver' option in .git/config (or $HOME/.gitconfig).\n\nSigned-off-by: Sergey Vlasov <vsu@altlinux.ru>\n---\n Documentation/git-send-email.txt |    8 +++++---\n git-send-email.perl              |    3 +++\n 2 files changed, 8 insertions(+), 3 deletions(-)\n\ndiff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt\nindex ec0e201..4c8d907 100644\n--- a/Documentation/git-send-email.txt\n+++ b/Documentation/git-send-email.txt\n@@ -68,9 +68,11 @@ The options available are:\n --smtp-server::\n \tIf set, specifies the outgoing SMTP server to use.  A full\n \tpathname of a sendmail-like program can be specified instead;\n-\tthe program must support the `-i` option.  Defaults to\n-\t`/usr/sbin/sendmail` or `/usr/lib/sendmail` if such program is\n-\tavailable, or to `localhost` otherwise.\n+\tthe program must support the `-i` option.  Default value can\n+\tbe specified by the 'sendemail.smtpserver' configuration\n+\toption; the built-in default is `/usr/sbin/sendmail` or\n+\t`/usr/lib/sendmail` if such program is available, or\n+\t`localhost` otherwise.\n \n --subject::\n    \tSpecify the initial subject of the email thread.\ndiff --git a/git-send-email.perl b/git-send-email.perl\nindex c42dc3b..4c87c20 100755\n--- a/git-send-email.perl\n+++ b/git-send-email.perl\n@@ -231,6 +231,9 @@ if (!defined $initial_reply_to && $promp\n }\n \n if (!$smtp_server) {\n+\t$smtp_server = $repo->config('sendemail.smtpserver');\n+}\n+if (!$smtp_server) {\n \tforeach (qw( /usr/sbin/sendmail /usr/lib/sendmail )) {\n \t\tif (-x $_) {\n \t\t\t$smtp_server = $_;\n-- \n1.4.3.3.ge502\n"},{"id":"294570","messageId":"87dcb0bd0610291234j587ebadcxf61e2f61777435c6@mail.gmail.com","threadId":"43383","inReplyTo":"11621502993406-git-send-email-vsu@altlinux.ru","subject":"Re: [PATCH 1/2] git-send-email: Document support for local sendmail instead of SMTP server","fromName":"Ryan Anderson","fromEmail":"rda@google.com","sentAt":"2006-10-29T20:34:27Z","receivedAt":"2006-10-29T20:34:27Z","isPatch":true,"sender":{"key":"ryan@michonline.com","avatar":null},"body":"On 10/29/06, Sergey Vlasov <vsu@altlinux.ru> wrote:\n> Fix the --smtp-server option description to match reality.\n>\n> Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>\nAcked-by: Ryan Anderson <rda@google.com> (or ryan@michonline.com,\n"},{"id":"298180","messageId":"87dcb0bd0610291237i1b4027a1p77bdcd84d38e05f4@mail.gmail.com","threadId":"43383","inReplyTo":"11621503001930-git-send-email-vsu@altlinux.ru","subject":"Re: [PATCH 2/2] git-send-email: Read the default SMTP server from the GIT config file","fromName":"Ryan Anderson","fromEmail":"rda@google.com","sentAt":"2006-10-29T20:37:48Z","receivedAt":"2006-10-29T20:37:48Z","isPatch":true,"sender":{"key":"ryan@michonline.com","avatar":null},"body":"On 10/29/06, Sergey Vlasov <vsu@altlinux.ru> wrote:\n> Make the default value for --smtp-server configurable through the\n> 'sendemail.smtpserver' option in .git/config (or $HOME/.gitconfig).\n>\n> Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>\n"}]}