]> granicus.if.org Git - python/commit
Script arguments localhost:localport and remotehost:remoteport are now
authorBarry Warsaw <barry@python.org>
Thu, 4 Oct 2001 16:27:04 +0000 (16:27 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 4 Oct 2001 16:27:04 +0000 (16:27 +0000)
commit0e8427e4f2460ea0260b13bb375598063cc179c4
tree3df8784af14eccfa526f302a7d06e92f0c40e1ed
parenta645b30294d9f712842da4aa196cbcdda06a7dcc
Script arguments localhost:localport and remotehost:remoteport are now
optional, and default to `localhost' and ports 8025 and 25
respectively.

SMTPChannel.__init__(): Calculate __fqdn using socket.getfqdn()
instead of gethostby*() and friends.  This allows us to run this
script even if we don't have access to dns (assuming the localhost is
configured properly).

Also, restore my precious page breaks.  Hands off, oh Whitespace
Normalizer!
Lib/smtpd.py