# HG changeset patch # User Valentino Volonghi aka dialtone # Date 1152447139 -7200 # Node ID 6e5427447f4c8f3e6e3f879c114240b9c7855083 # Parent 6a961a54f953e6d0f2e6760f15f42f0000e1b774 adding local_hostname option to smtp configuration diff -r 6a961a54f953 -r 6e5427447f4c doc/hgrc.5.txt --- a/doc/hgrc.5.txt Fri Jul 07 11:23:53 2006 +0200 +++ b/doc/hgrc.5.txt Sun Jul 09 14:12:19 2006 +0200 @@ -309,6 +309,9 @@ Optional. Password to authenticate to SMTP server with. If username is specified, password must also be specified. Default: none. + local_hostname;; + Optional. It's the hostname that the sender can use to identify itself + to the MTA. paths:: Assigns symbolic names to repositories. The left side is the diff -r 6a961a54f953 -r 6e5427447f4c mercurial/ui.py --- a/mercurial/ui.py Fri Jul 07 11:23:53 2006 +0200 +++ b/mercurial/ui.py Sun Jul 09 14:12:19 2006 +0200 @@ -298,7 +298,8 @@ def smtp(): '''send mail using smtp.''' - s = smtplib.SMTP() + local_hostname = self.config('smtp', 'local_hostname') + s = smtplib.SMTP(local_hostname=local_hostname) mailhost = self.config('smtp', 'host') if not mailhost: raise util.Abort(_('no [smtp]host in hgrc - cannot send mail'))