removed debug messages

This commit is contained in:
Chris 2023-11-19 17:18:47 +01:00
parent 4fc5478078
commit 2e55c2ba1f

View file

@ -44,20 +44,16 @@ class CustomHandler:
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,