<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-send-email.perl, branch v2.2.0</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.2.0</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.2.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-06-20T20:12:20Z</updated>
<entry>
<title>Merge branch 'mt/send-email-cover-to-cc'</title>
<updated>2014-06-20T20:12:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-06-20T20:12:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9fe49ae7d7750297680442bcee8cd13959303247'/>
<id>urn:sha1:9fe49ae7d7750297680442bcee8cd13959303247</id>
<content type='text'>
* mt/send-email-cover-to-cc:
  t9001: avoid non-portable '\n' with sed
  test/send-email: to-cover, cc-cover tests
  git-send-email: two new options: to-cover, cc-cover
</content>
</entry>
<entry>
<title>git-send-email: two new options: to-cover, cc-cover</title>
<updated>2014-04-29T18:27:41Z</updated>
<author>
<name>Michael S. Tsirkin</name>
<email>mst@redhat.com</email>
</author>
<published>2014-04-29T05:41:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f515c904fb4d1b95bb8b94cb00fb6b5768cf0ed4'/>
<id>urn:sha1:f515c904fb4d1b95bb8b94cb00fb6b5768cf0ed4</id>
<content type='text'>
Allow extracting To/Cc addresses from the first patch
(typically the cover letter), and use them as To/Cc addresses of the
remainder of the series.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>send-email: windows drive prefix (e.g. C:) appears only at the beginning</title>
<updated>2014-04-23T16:37:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-04-23T16:37:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f24ecf5998a6c913ea6111dc0650c91165149264'/>
<id>urn:sha1:f24ecf5998a6c913ea6111dc0650c91165149264</id>
<content type='text'>
Tighten the regexp used in the "file_name_is_absolute" replacement
used on msys to declare that only "[a-zA-Z]:" that appear at the
very beginning is a path with a drive-prefix.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>send-email: recognize absolute path on Windows</title>
<updated>2014-04-16T18:51:16Z</updated>
<author>
<name>Erik Faye-Lund</name>
<email>kusmabite@googlemail.com</email>
</author>
<published>2014-04-16T08:08:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cb005c1fdf814d3b65b5b43f5f4fa25aa1bcdf46'/>
<id>urn:sha1:cb005c1fdf814d3b65b5b43f5f4fa25aa1bcdf46</id>
<content type='text'>
On Windows, absolute paths might start with a DOS drive prefix,
which these two checks failed to recognize.

Unfortunately, we cannot simply use the file_name_is_absolute
helper in File::Spec::Functions, because Git for Windows has an
MSYS-based Perl, where this helper doesn't grok DOS
drive-prefixes.

So let's manually check for these in that case, and fall back to
the File::Spec-helper on other platforms (e.g Win32 with native
Perl)

Signed-off-by: Erik Faye-Lund &lt;kusmabite@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rk/send-email-ssl-cert'</title>
<updated>2014-01-27T18:44:34Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-01-27T18:44:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=de20e4472157d0ed53bdc6374185a2ce3c7c9f3d'/>
<id>urn:sha1:de20e4472157d0ed53bdc6374185a2ce3c7c9f3d</id>
<content type='text'>
The "if /etc/ssl/certs/ directory exists, explicitly telling the
library to use it as SSL_ca_path" blind-defaulting in "git
send-email" broke platforms where /etc/ssl/certs/ directory exists,
but it cannot used as SSL_ca_path (e.g. Fedora rawhide).  Fix it by
not specifying any SSL_ca_path/SSL_ca_file but still asking for peer
verification in such a case.

* rk/send-email-ssl-cert:
  send-email: /etc/ssl/certs/ directory may not be usable as ca_path
</content>
</entry>
<entry>
<title>send-email: /etc/ssl/certs/ directory may not be usable as ca_path</title>
<updated>2014-01-16T22:34:51Z</updated>
<author>
<name>Ruben Kerkhof</name>
<email>ruben@rubenkerkhof.com</email>
</author>
<published>2014-01-15T17:31:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=01645b749376b7026276112d69d5b9c22b000ee4'/>
<id>urn:sha1:01645b749376b7026276112d69d5b9c22b000ee4</id>
<content type='text'>
When sending patches on Fedora rawhide with
git-1.8.5.2-1.fc21.x86_64 and perl-IO-Socket-SSL-1.962-1.fc21.noarch,
with the following

    [sendemail]
	    smtpencryption = tls
	    smtpserver = smtp.gmail.com
	    smtpuser = ruben@rubenkerkhof.com
	    smtpserverport = 587

git-send-email fails with:

    STARTTLS failed! SSL connect attempt failed with unknown error
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate
    verify failed at /usr/libexec/git-core/git-send-email line 1236.

The current code detects the presence of /etc/ssl/certs directory
(it actually is a symlink to another directory, but that does not
matter) and uses SSL_ca_path to point at it when initializing the
connection with IO::Socket::SSL or Net::SMTP::SSL.  However, on the
said platform, it seems that this directory is not designed to be
used as SSL_ca_path.  Using a single file inside that directory
(cert.pem, which is a Mozilla CA bundle) with SSL_ca_file does work,
and also not specifying any SSL_ca_file/SSL_ca_path (and letting the
library use its own default) and asking for peer verification does
work.

By removing the code that blindly defaults $smtp_ssl_cert_path to
"/etc/ssl/certs", we can prevent the codepath that treats any
directory specified with that variable as usable for SSL_ca_path
from incorrectly triggering.

This change could introduce a regression for people on a platform
whose certificate directory is /etc/ssl/certs but its IO::Socket:SSL
somehow fails to use it as SSL_ca_path without being told.  Using
/etc/ssl/certs directory as SSL_ca_path by default like the current
code does would have been hiding such a broken installation without
its user needing to do anything.  These users can still work around
such a platform bug by setting the configuration variable explicitly
to point at /etc/ssl/certs.

This change should not negate what 35035bbf (send-email: be explicit
with SSL certificate verification, 2013-07-18), which was the
original change that introduced the defaulting to /etc/ssl/certs/,
attempted to do, which is to make sure we do not communicate over
insecure connection by default, triggering warning from the library.

Cf. https://bugzilla.redhat.com/show_bug.cgi?id=1043194

Tested-by: Igor Gnatenko &lt;i.gnatenko.brain@gmail.com&gt;
Signed-off-by: Ruben Kerkhof &lt;ruben@rubenkerkhof.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>send-email: set SSL options through IO::Socket::SSL::set_client_defaults</title>
<updated>2013-12-04T19:45:32Z</updated>
<author>
<name>Thomas Rast</name>
<email>tr@thomasrast.ch</email>
</author>
<published>2013-12-01T22:48:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5508f3ed2c1cdb515e658cfc29ca0d5cd6683190'/>
<id>urn:sha1:5508f3ed2c1cdb515e658cfc29ca0d5cd6683190</id>
<content type='text'>
When --smtp-encryption=ssl, we use a Net::SMTP::SSL connection,
passing its -&gt;new all the options that would otherwise go to
Net::SMTP-&gt;new (most options) and IO::Socket::SSL-&gt;start_SSL (for the
SSL options).

However, while Net::SMTP::SSL replaces the underlying socket class
with an SSL socket, it does nothing to allow passing options to that
socket.  So the SSL-relevant options are lost.

Fortunately there is an escape hatch: we can directly set the options
with IO::Socket::SSL::set_client_defaults.  They will then persist
within the IO::Socket::SSL module.

Signed-off-by: Thomas Rast &lt;tr@thomasrast.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>send-email: --smtp-ssl-cert-path takes an argument</title>
<updated>2013-12-04T19:45:30Z</updated>
<author>
<name>Thomas Rast</name>
<email>tr@thomasrast.ch</email>
</author>
<published>2013-12-01T22:48:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=979e652a18eea8e865777239f11c89795d969211'/>
<id>urn:sha1:979e652a18eea8e865777239f11c89795d969211</id>
<content type='text'>
35035bb (send-email: be explicit with SSL certificate verification,
2013-07-18) forgot to specify that --smtp-ssl-cert-path takes a string
argument.  This means that the option could not actually be used as
intended.  Presumably noone noticed because it's much easier to set it
through configs anyway.

Add the required "=s".

Signed-off-by: Thomas Rast &lt;tr@thomasrast.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>send-email: pass Debug to Net::SMTP::SSL::new</title>
<updated>2013-12-04T19:45:27Z</updated>
<author>
<name>Thomas Rast</name>
<email>tr@thomasrast.ch</email>
</author>
<published>2013-12-01T22:48:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d4d9653b5401b28dd88a84bd1bf1d269b8acccf6'/>
<id>urn:sha1:d4d9653b5401b28dd88a84bd1bf1d269b8acccf6</id>
<content type='text'>
We forgot to pass the Debug option through to Net::SMTP::SSL-&gt;new --
which is the same as Net::SMTP-&gt;new.  This meant that with security
set to SSL, we would never enable debug output.

Pass through the flag.

Signed-off-by: Thomas Rast &lt;tr@thomasrast.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>send-email: don't call methods on undefined values</title>
<updated>2013-09-10T15:49:22Z</updated>
<author>
<name>Brian M. Carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2013-09-08T20:54:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6cb0c883052118c35e424af7a311c66be9b366e1'/>
<id>urn:sha1:6cb0c883052118c35e424af7a311c66be9b366e1</id>
<content type='text'>
If SSL verification is enabled in git send-email, we could attempt to call a
method on an undefined value if the verification failed, since $smtp would end
up being undef.  Look up the error string in a way that will produce a helpful
error message and not cause further errors.

Signed-off-by: Brian M. Carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
