Commit 406d46e1 authored by Barry Warsaw's avatar Barry Warsaw

found_terminator(): Add a debug print showing the data.

parent 3a28ca8f
#! /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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment