{"thread":{"id":"14262","subject":"[PATCH] git-send-email: Do not attempt to STARTTLS more than once","startedAt":"2008-07-02T22:11:31Z","lastAt":"2008-07-02T22:11:31Z","messageCount":1,"participants":["Thomas Rast"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"82039","messageId":"1215036691-28618-1-git-send-email-trast@student.ethz.ch","threadId":"14262","inReplyTo":null,"subject":"[PATCH] git-send-email: Do not attempt to STARTTLS more than once","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2008-07-02T22:11:31Z","receivedAt":"2008-07-02T22:11:31Z","isPatch":true,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"With the previous TLS patch, send-email would attempt to STARTTLS at\nthe beginning of every mail, despite reusing the last connection.  We\nsimply skip further encryption checks after successful TLS initiation.\n\nSigned-off-by: Thomas Rast <trast@student.ethz.ch>\n---\n git-send-email.perl |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\ndiff --git a/git-send-email.perl b/git-send-email.perl\nindex a047b01..3564419 100755\n--- a/git-send-email.perl\n+++ b/git-send-email.perl\n@@ -772,6 +772,7 @@ X-Mailer: git-send-email $gitversion\n \t\t\t\tif ($smtp->code == 220) {\n \t\t\t\t\t$smtp = Net::SMTP::SSL->start_SSL($smtp)\n \t\t\t\t\t\tor die \"STARTTLS failed! \".$smtp->message;\n+\t\t\t\t\t$smtp_encryption = '';\n \t\t\t\t} else {\n \t\t\t\t\tdie \"Server does not support STARTTLS! \".$smtp->message;\n \t\t\t\t}\n-- \n1.5.6.1.278.g3d7f6\n"}]}