Show More
@@ -50,3 +50,4 b' b92327b47c09f80d36c920aafcbec367c92ed78f' | |||||
50 | 6bbaecea178efa4c4dee22bcd56e16717848b705 1.1.0 |
|
50 | 6bbaecea178efa4c4dee22bcd56e16717848b705 1.1.0 | |
51 | 734e3a7cd0671a4dd01f28b9e670bd55e6247e09 1.1.1 |
|
51 | 734e3a7cd0671a4dd01f28b9e670bd55e6247e09 1.1.1 | |
52 | 87c891cda54f14d9f23d3ad008ada78670c98b1f 1.1.2 |
|
52 | 87c891cda54f14d9f23d3ad008ada78670c98b1f 1.1.2 | |
|
53 | f116766d109a593b70ada966f062ea9ec521d926 1.1.3 |
@@ -1,3 +1,9 b'' | |||||
|
1 | ||||
|
2 | 1.1.3 | |||
|
3 | ~~~~~~~~~~~~~~~~~~ | |||
|
4 | ||||
|
5 | Mercurial 3.8 compatibility for email over SSL/TLS (SMTPS/STARTTLS | |||
|
6 | constructors changed). Should not spoil older versions. | |||
1 |
|
7 | |||
2 | 1.1.2 |
|
8 | 1.1.2 | |
3 | ~~~~~~~~~~~~~~~~~~ |
|
9 | ~~~~~~~~~~~~~~~~~~ |
@@ -622,9 +622,17 b' def keyring_supported_smtp(ui, username)' | |||||
622 | sslkwargs = {} |
|
622 | sslkwargs = {} | |
623 | if smtps: |
|
623 | if smtps: | |
624 | ui.note(_('(using smtps)\n')) |
|
624 | ui.note(_('(using smtps)\n')) | |
625 | s = SMTPS(sslkwargs, local_hostname=local_hostname) |
|
625 | ||
|
626 | # mercurial 3.8 added a mandatory host arg | |||
|
627 | if 'host' in SMTPS.__init__.__code__.co_varnames: | |||
|
628 | s = SMTPS(sslkwargs, local_hostname=local_hostname, host=mailhost) | |||
|
629 | else: | |||
|
630 | s = SMTPS(sslkwargs, local_hostname=local_hostname) | |||
626 | elif starttls: |
|
631 | elif starttls: | |
627 | s = STARTTLS(sslkwargs, local_hostname=local_hostname) |
|
632 | if 'host' in STARTTLS.__init__.__code__.co_varnames: | |
|
633 | s = STARTTLS(sslkwargs, local_hostname=local_hostname, host=mailhost) | |||
|
634 | else: | |||
|
635 | s = STARTTLS(sslkwargs, local_hostname=local_hostname) | |||
628 | else: |
|
636 | else: | |
629 | s = smtplib.SMTP(local_hostname=local_hostname) |
|
637 | s = smtplib.SMTP(local_hostname=local_hostname) | |
630 | if smtps: |
|
638 | if smtps: |
General Comments 0
You need to be logged in to leave comments.
Login now