I want to extract only the body of a message and return it. I can filter on the fields and display the snippet but not the body.
def GetMimeMessage(service, user
The base64url encoded string needs some alteration before passing into the decode function as below:
msg_str = base64.urlsafe_b64decode(message['raw'].replace('-_', '+/').encode('ASCII'))
See if this helps