Skip to content

Commit

Permalink
removed debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
geek-at committed Nov 19, 2023
1 parent 4fc5478 commit 2e55c2b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions python/mailserver3.py
Expand Up @@ -44,20 +44,16 @@ async def handle_DATA(self, server, session, envelope):
for part in message.walk():
if part.get_content_maintype() == 'multipart':
continue
print ("aktueller part ist vom typ",part.get_content_type())
if part.get_content_type() == 'text/plain':
plaintext += part.get_payload()
elif part.get_content_type() == 'text/html':
html += part.get_payload()
else:
print("!!!attachment found!!!")
filename = part.get_filename()
if filename is None:
filename = 'untitled'
attachments['file%d' % len(attachments)] = (filename,part.get_payload(decode=True))

print(attachments)

edata = {
'subject': message['subject'],
'body': plaintext,
Expand Down

0 comments on commit 2e55c2b

Please sign in to comment.