<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-send-email.perl, branch v2.15.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.15.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.15.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-08-24T21:40:17Z</updated>
<entry>
<title>send-email: don't use Mail::Address, even if available</title>
<updated>2017-08-24T21:40:17Z</updated>
<author>
<name>Matthieu Moy</name>
<email>git@matthieu-moy.fr</email>
</author>
<published>2017-08-23T10:21:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cc9075067776ebd34cc08f31bf78bb05f12fd879'/>
<id>urn:sha1:cc9075067776ebd34cc08f31bf78bb05f12fd879</id>
<content type='text'>
Using Mail::Address made sense when we didn't have a proper parser. We
now have a reasonable address parser, and using Mail::Address
_if available_ causes much more trouble than it gives benefits:

* Developers typically test one version, not both.

* Users may not be aware that installing Mail::Address will change the
  behavior. They may complain about the behavior in one case without
  knowing that Mail::Address is involved.

* Having this optional Mail::Address makes it tempting to anwser "please
  install Mail::Address" to users instead of fixing our own code. We've
  reached the stage where bugs in our parser should be fixed, not worked
  around.

Signed-off-by: Matthieu Moy &lt;git@matthieu-moy.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>send-email: fix garbage removal after address</title>
<updated>2017-08-24T21:40:15Z</updated>
<author>
<name>Matthieu Moy</name>
<email>git@matthieu-moy.fr</email>
</author>
<published>2017-08-23T10:21:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cb2922fe4b2a82e2174d419781836e768651ebff'/>
<id>urn:sha1:cb2922fe4b2a82e2174d419781836e768651ebff</id>
<content type='text'>
This is a followup over 9d33439 (send-email: only allow one address
per body tag, 2017-02-20). The first iteration did allow writting

  Cc: &lt;foo@example.com&gt; # garbage

but did so by matching the regex ([^&gt;]*&gt;?), i.e. stop after the first
instance of '&gt;'. However, it did not properly deal with

  Cc: foo@example.com # garbage

Fix this using a new function strip_garbage_one_address, which does
essentially what the old ([^&gt;]*&gt;?) was doing, but dealing with more
corner-cases. Since we've allowed

  Cc: "Foo # Bar" &lt;foobar@example.com&gt;

in previous versions, it makes sense to continue allowing it (but we
still remove any garbage after it). OTOH, when an address is given
without quoting, we just take the first word and ignore everything
after.

Signed-off-by: Matthieu Moy &lt;git@matthieu-moy.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'xz/send-email-batch-size'</title>
<updated>2017-07-07T01:14:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-07-07T01:14:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eb37527ab0b6e9ff1cbd01aa20a4dd6aa4150a96'/>
<id>urn:sha1:eb37527ab0b6e9ff1cbd01aa20a4dd6aa4150a96</id>
<content type='text'>
"git send-email" learned to overcome some SMTP server limitation
that does not allow many pieces of e-mails to be sent over a single
session.

* xz/send-email-batch-size:
  send-email: --batch-size to work around some SMTP server limit
</content>
</entry>
<entry>
<title>send-email: --batch-size to work around some SMTP server limit</title>
<updated>2017-07-05T16:09:45Z</updated>
<author>
<name>xiaoqiang zhao</name>
<email>zxq_yx_007@163.com</email>
</author>
<published>2017-05-21T12:59:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5453b83bdf92efbfe9e9aaa54d4c62ce48ced2f5'/>
<id>urn:sha1:5453b83bdf92efbfe9e9aaa54d4c62ce48ced2f5</id>
<content type='text'>
Some email servers (e.g. smtp.163.com) limit the number emails to be
sent per session (connection) and this will lead to a faliure when
sending many messages.

Teach send-email to disconnect after sending a number of messages
(configurable via the --batch-size=&lt;num&gt; option), wait for a few
seconds (configurable via the --relogin-delay=&lt;seconds&gt; option) and
reconnect, to work around such a limit.

Also add two configuration variables to give these options the default.

Note:

  We will use this as a band-aid for now, but in the longer term, we
  should look at and react to the SMTP error code from the server;
  Xianqiang reports that 450 and 451 are returned by problematic
  servers.

  cf. https://public-inbox.org/git/7993e188.d18d.15c3560bcaf.Coremail.zxq_yx_007@163.com/

Signed-off-by: xiaoqiang zhao &lt;zxq_yx_007@163.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jt/send-email-validate-hook'</title>
<updated>2017-06-02T06:06:00Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-02T06:05:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8e6a904dd8afedcc0bcfcc4bf4c5f4b2c10edfbf'/>
<id>urn:sha1:8e6a904dd8afedcc0bcfcc4bf4c5f4b2c10edfbf</id>
<content type='text'>
A hotfix for a topic already in 'master'.

* jt/send-email-validate-hook:
  send-email: check for repo before invoking hook
</content>
</entry>
<entry>
<title>Merge branch 'dk/send-email-avoid-net-smtp-ssl-when-able'</title>
<updated>2017-06-02T06:05:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-06-02T06:05:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b85b88141ea102638cd532813767e6f9484b1498'/>
<id>urn:sha1:b85b88141ea102638cd532813767e6f9484b1498</id>
<content type='text'>
A hotfix to a topic in 'master'.

* dk/send-email-avoid-net-smtp-ssl-when-able:
  send-email: Net::SMTP::starttls was introduced in v2.34
</content>
</entry>
<entry>
<title>send-email: check for repo before invoking hook</title>
<updated>2017-06-02T01:58:25Z</updated>
<author>
<name>Jonathan Tan</name>
<email>jonathantanmy@google.com</email>
</author>
<published>2017-06-01T23:50:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=177409e5897988f03e0c8111c94db6ea0466b138'/>
<id>urn:sha1:177409e5897988f03e0c8111c94db6ea0466b138</id>
<content type='text'>
Unless --no-validate is passed, send-email will invoke
$repo-&gt;repo_path() in its search for a validate hook regardless of
whether a Git repo is actually present.  Teach send-email to first check
for repo existence.

Signed-off-by: Jonathan Tan &lt;jonathantanmy@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>send-email: Net::SMTP::starttls was introduced in v2.34</title>
<updated>2017-06-01T02:23:35Z</updated>
<author>
<name>Jonathan Nieder</name>
<email>jrnieder@gmail.com</email>
</author>
<published>2017-06-01T00:17:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bfbfc9a953d8e26b029110c05581b22f9f0d77e9'/>
<id>urn:sha1:bfbfc9a953d8e26b029110c05581b22f9f0d77e9</id>
<content type='text'>
We cannot rely on the starttls method being present in Net::SMTP until
c274b798e6881a941d941808c6d89966975cb8c8 (Merge branch 'ipv6_ssl' of
https://github.com/noxxi/perl-libnet into noxxi-ipv6_ssl, 2014-06-02),
which set the module version to 2.34.

This version was first shipped as part of perl in v5.21.5~169 (Update
libnet to CPAN version 3.01, 2014-10-10).

Noticed on an Ubuntu system with perl 5.18.2-2ubuntu1.1, which
provides Net::SMTP version 2.31. The error message is

  Can't locate object method "starttls" via package "Net::SMTP" at /usr/lib/git-core/git-send-email line 1410.

Reported-by: Brandon Williams &lt;bmwill@google.com&gt;
Reported-and-tested-by: Eric Biggers &lt;ebiggers3@gmail.com&gt;
Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'dk/send-email-avoid-net-smtp-ssl-when-able'</title>
<updated>2017-05-30T02:16:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-05-30T02:16:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=663bf0439e25a0e0926055361d201b39dddbffb4'/>
<id>urn:sha1:663bf0439e25a0e0926055361d201b39dddbffb4</id>
<content type='text'>
"git send-email" now uses Net::SMTP::SSL, which is obsolete, only
when needed.  Recent versions of Net::SMTP can do TLS natively.

* dk/send-email-avoid-net-smtp-ssl-when-able:
  send-email: Net::SMTP::SSL is obsolete, use only when necessary
</content>
</entry>
<entry>
<title>send-email: Net::SMTP::SSL is obsolete, use only when necessary</title>
<updated>2017-05-20T09:34:24Z</updated>
<author>
<name>Dennis Kaarsemaker</name>
<email>dennis@kaarsemaker.net</email>
</author>
<published>2017-03-24T21:37:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0ead000c3aca13a10ae51a3c74c866981e0d33b8'/>
<id>urn:sha1:0ead000c3aca13a10ae51a3c74c866981e0d33b8</id>
<content type='text'>
Net::SMTP itself can do the necessary SSL and STARTTLS bits just fine
since version 1.28, and Net::SMTP::SSL is now deprecated. Since 1.28
isn't that old yet, keep the old code in place and use it when
necessary.

While we're in the area, mark some messages for translation that were
not yet marked as such.

Signed-off-by: Dennis Kaarsemaker &lt;dennis@kaarsemaker.net&gt;
Reviewed-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
