Commits

Zhang Huangbin committed a2d0eeb

Fixed: not send addition '\n' will cause 'premature end-of-input' error while Postfix communicating iRedAPD.

Comments (0)

Files changed (1)

         self.recipient_search_attrlist = recipient_search_attrlist
 
     def push(self, msg):
-        asynchat.async_chat.push(self, msg)
+        asynchat.async_chat.push(self, msg + '\n')
 
     def collect_incoming_data(self, data):
         self.buffer.append(data)