Why does “message.get('Subject')” return type when getting the subject of an email?

后端 未结 0 921
北荒
北荒 2020-12-30 16:09

I\'m getting the subject of an email with the below python code:

typ, rfc = self.mail.uid(\'fetch\', num, \'(RFC822)\')
raw_email = rfc[0][1]
msg = email.mess         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题