开发者

PHP: imap_savebody() breaks long lines

开发者 https://www.devze.com 2023-03-05 23:02 出处:网络
I attempt to parse an email message whose body is in csv format. The email supposedly has this content:

I attempt to parse an email message whose body is in csv format.

The email supposedly has this content:

,111111111111111,Abcde Abcd,,abcde@abcdefghi.com.au,61352722827,13/04/2012,14/04/2011,Abcd Abcdefghi,
,111111111111111,Abcde Abcd,,abcde@abcdefghi.com.au,61352722827,13/04/2012,14/04/2011,Abcd Abcdefghi,

But imap_savebody() saves it like this:

,11111111111开发者_StackOverflow1111,Abcde
Abcd,,abcde@abcdefghi.com.au,61352722827,13/04/2012,14/04/2011,Abcd
Abcdefghi,
,111111111111111,Abcde
Abcd,,abcde@abcdefghi.com.au,61352722827,13/04/2012,14/04/2011,Abcd
Abcdefghi,

The encoding is 7BIT as outputted by imap_fetchstructure. Anyone knows why this happens?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号