python读取msg文件_基于python的extract_msg模块提取outlook邮箱保存的msg文件中的附件...

Traceback (most recent call last):

File"C:\Users\QQ5201351\AppData\Local\Programs\Python\Python37\lib\site-packages\extract_msg\msg.py", line 422, innamedreturn self.__namedPropertiesAttributeError:'Message' object has no attribute '_MSGFile__namedProperties'During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File"C:\Users\QQ5201351\Desktop\mail\test\test.py", line 5, in msg= extract_msg.Message("Important_msg_from_qq5201351.msg")

File"C:\Users\QQ5201351\AppData\Local\Programs\Python\Python37\lib\site-packages\extract_msg\message.py", line 28, in __init__MessageBase.__init__(self, path, prefix, attachmentClass, filename, delayAttachments, overrideEncoding)

File"C:\Users\QQ5201351\AppData\Local\Programs\Python\Python37\lib\site-packages\extract_msg\message_base.py", line 61, in __init__self.named

File"C:\Users\QQ5201351\AppData\Local\Programs\Python\Python37\lib\site-packages\extract_msg\msg.py", line 424, innamed

self.__namedProperties =Named(self)

File"C:\Users\QQ5201351\AppData\Local\Programs\Python\Python37\lib\site-packages\extract_msg\named.py", line 63, in __init__self.__properties.append(StringNamedProperty(entry, names[entry['id']], msg._getTypedData(streamID)) if entry['pkind'] == constants.STRING_NAMED elseNumericalNamedProperty(entry, msg._getTypedData(streamID)))

File"C:\Users\QQ5201351\AppData\Local\Programs\Python\Python37\lib\site-packages\extract_msg\msg.py", line 177, in_getTypedData

found, result= self._getTypedStream('__substg1.0_' +id, prefix, _type)

File"C:\Users\QQ5201351\AppData\Local\Programs\Python\Python37\lib\site-packages\extract_msg\msg.py", line 246, in_getTypedStreamraise NotImplementedError('The stream specified is of type {}. We don\'t currently understand exactly how this type works. If it is mandatory that you have the contents of this stream, please create an issue labled "NotImplementedError: _getTypedStream {}".'.format(_type, _type))

NotImplementedError: The stream specifiedis of type 1014. We don't currently understand exactly how this type works. If it is mandatory that you have the contents of this stream, please create an issue labled "NotImplementedError: _getTypedStream 1014".

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值