mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-02-11 09:25:00 +00:00
Update smtp.py
This commit is contained in:
parent
50299e7b68
commit
493d5dcb5f
5
smtp.py
5
smtp.py
|
@ -78,6 +78,11 @@ def jsonrpc2_decode(data):
|
|||
return type, id, method, rpcdata
|
||||
|
||||
class CaterpillarSMTPServer(SMTPServer):
|
||||
def __init__(self, localaddr, remoteaddr):
|
||||
self.__class__.smtpd_hostname = "CaterpillarSMTPServer"
|
||||
self.__class__.smtp_version = "0.1.5"
|
||||
super().__init__(localaddr, remoteaddr)
|
||||
|
||||
def process_message(self, peer, mailfrom, rcpttos, data, **kwargs):
|
||||
message_lines = data.decode('utf-8').split('\n')
|
||||
subject = ''
|
||||
|
|
Loading…
Reference in New Issue
Block a user