当前位置:   article > 正文

python eml解析,使用Python 2.7解析msg / eml文件

python eml转msg

Is there a library that can parse msg or eml files? I wrote a script that parses an email once it is converted to a txt file, but i cannot find an email client that allows me to easily drag-n-drop emails from the gui into a folder as a txt file (if someone knows this i would love to know!)

Drag-n-dropping from Outlook creates a .msg file and Thunderbird creates an .eml file. Does anyone know of a library that will parse these files like these?

解决方案

For *.eml files you can use email module from standard library. You will need to use Parser from email.parser to create a message object.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/1003817
推荐阅读
相关标签
  

闽ICP备14008679号