diff options
author | Barry Warsaw <barry@python.org> | 2001-08-13 21:18:01 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-08-13 21:18:01 (GMT) |
commit | 406d46e185e923d4264be02eca37d4bb4fb95c2d (patch) | |
tree | 00784e56b06711394eeb12b5db3b78cd3cf116a2 | |
parent | 3a28ca8fb8822b89a3ee53a20d924da9269e727c (diff) | |
download | cpython-406d46e185e923d4264be02eca37d4bb4fb95c2d.zip cpython-406d46e185e923d4264be02eca37d4bb4fb95c2d.tar.gz cpython-406d46e185e923d4264be02eca37d4bb4fb95c2d.tar.bz2 |
found_terminator(): Add a debug print showing the data.
-rwxr-xr-x | Lib/smtpd.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/smtpd.py b/Lib/smtpd.py index a99f7c5..c1a2db5 100755 --- a/Lib/smtpd.py +++ b/Lib/smtpd.py @@ -1,5 +1,5 @@ #! /usr/bin/env python -"""An RFC 821 smtp proxy. +"""An RFC 2821 smtp proxy. Usage: %(program)s [options] localhost:port remotehost:port @@ -133,6 +133,7 @@ class SMTPChannel(asynchat.async_chat): # Implementation of base class abstract method def found_terminator(self): line = EMPTYSTRING.join(self.__line) + print >> DEBUGSTREAM, 'Data:', repr(line) self.__line = [] if self.__state == self.COMMAND: if not line: |