MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / process_message

Method process_message

tools/python-3.11.9-amd64/Lib/smtpd.py:744–756  ·  view source on GitHub ↗
(self, peer, mailfrom, rcpttos, data)

Source from the content-addressed store, hash-verified

742 super(PureProxy, self).__init__(*args, **kwargs)
743
744 def process_message(self, peer, mailfrom, rcpttos, data):
745 lines = data.split('\n')
746 # Look for the last header
747 i = 0
748 for line in lines:
749 if not line:
750 break
751 i += 1
752 lines.insert(i, 'X-Peer: %s' % peer[0])
753 data = NEWLINE.join(lines)
754 refused = self._deliver(mailfrom, rcpttos, data)
755 # TBD: what to do with refused addresses?
756 print('we got some refusals:', refused, file=DEBUGSTREAM)
757
758 def _deliver(self, mailfrom, rcpttos, data):
759 import smtplib

Callers 1

found_terminatorMethod · 0.45

Calls 5

_deliverMethod · 0.95
printFunction · 0.50
splitMethod · 0.45
insertMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected