PHP:imap_savebody() 打破长行
我尝试解析正文为 csv 格式的电子邮件。
电子邮件应该有这样的内容:
,111111111111111,Abcde Abcd,,[email protected],61352722827,13/04/2012,14/04/2011,Abcd Abcdefghi,
,111111111111111,Abcde Abcd,,[email protected],61352722827,13/04/2012,14/04/2011,Abcd Abcdefghi,
但是 imap_savebody() 像这样保存它:
,111111111111111,Abcde
Abcd,,[email protected],61352722827,13/04/2012,14/04/2011,Abcd
Abcdefghi,
,111111111111111,Abcde
Abcd,,[email protected],61352722827,13/04/2012,14/04/2011,Abcd
Abcdefghi,
imap_fetchstruct 输出的编码是 7BIT。有谁知道为什么会发生这种情况?
I attempt to parse an email message whose body is in csv format.
The email supposedly has this content:
,111111111111111,Abcde Abcd,,[email protected],61352722827,13/04/2012,14/04/2011,Abcd Abcdefghi,
,111111111111111,Abcde Abcd,,[email protected],61352722827,13/04/2012,14/04/2011,Abcd Abcdefghi,
But imap_savebody() saves it like this:
,111111111111111,Abcde
Abcd,,[email protected],61352722827,13/04/2012,14/04/2011,Abcd
Abcdefghi,
,111111111111111,Abcde
Abcd,,[email protected],61352722827,13/04/2012,14/04/2011,Abcd
Abcdefghi,
The encoding is 7BIT as outputted by imap_fetchstructure. Anyone knows why this happens?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论