main2
Bob Mottram 2019-11-09 20:24:03 +00:00
parent 0969ccc29c
commit d941c1ba7f
1 changed files with 4 additions and 1 deletions

View File

@ -2653,8 +2653,11 @@ class PubServer(BaseHTTPRequestHandler):
# why don't we just use msg.is_multipart(), rather than splitting?
# TL;DR it doesn't work for this use case because we're not using
# email style encoding message/rfc822
print('messageFields1: '+str(msg.get_payload(decode=False)))
print('messageFields2: '+str(msg.get_payload(decode=True)))
messageFields=msg.get_payload(decode=True).decode('utf-8').split(boundary)
print('messageFields: '+str(messageFields))
print('messageFields3')
print('messageFields4: '+str(messageFields))
fields={}
filename=None
attachmentMediaType=None