Ticket #1602: ticket1602.diff

File ticket1602.diff, 828 bytes (added by PenguinOfDoom, 16 years ago)
  • twisted/mail/smtp.py

     
    506506        semantics should be to discard the message
    507507        """
    508508
    509 class SMTP(basic.LineReceiver, policies.TimeoutMixin):
     509class SMTP(basic.LineOnlyReceiver, policies.TimeoutMixin):
    510510    """SMTP server-side protocol."""
    511511
    512512    timeout = 600
     
    603603            del self.__messages
    604604        self.sendCode(500, 'Line too long')
    605605
    606     def rawDataReceived(self, data):
    607         """Throw away rest of long line"""
    608         rest = string.split(data, '\r\n', 1)
    609         if len(rest) == 2:
    610             self.setLineMode(rest[1])
    611 
    612606    def do_UNKNOWN(self, rest):
    613607        self.sendCode(500, 'Command not implemented')
    614608