The structure is the following:
"payload": {
"partId": string,
"mimeType": string,
"filename": string,
"headers": [
{
"name": string,
"value": string
}
],
and:
So, in other words, the subject is contained in the headers.
You can retrieve in Python with
headers = msg['payload']['headers']
subject= [i['value'] for i in headers if i["name"]=="Subject"]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…