]> granicus.if.org Git - python/commit
Two bug fixes for problems reported by Sverre:
authorBarry Warsaw <barry@python.org>
Sun, 4 Nov 2001 03:04:25 +0000 (03:04 +0000)
committerBarry Warsaw <barry@python.org>
Sun, 4 Nov 2001 03:04:25 +0000 (03:04 +0000)
commitebf5427bfacae1c0bc497410626cbb3e995dc214
treeae9a0cd8e41dff348d1e48a228566efe51bb6da1
parent169ded0d6819f761def726deda19a35c91116674
Two bug fixes for problems reported by Sverre:

__getaddr(): Watch out for empty addresses that can happen when
something like "MAIL FROM:<CR>" is received.  This avoids the
IndexError and rightly returns an SMTP syntax error.

parseargs(): We didn't handle the 2-arg case where both the localspec
and the remotespec were provided on the command line.
Lib/smtpd.py