php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71811 Its not possible to retrieve the text/body from a bounced email with the subtyp
Submitted: 2016-03-13 01:57 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: clark at electrobeat dot dk Assigned:
Status: Open Package: IMAP related
PHP Version: 5.6.19 OS: Debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
28 + 38 = ?
Subscribe to this entry?

 
 [2016-03-13 01:57 UTC] clark at electrobeat dot dk
Description:
------------
Its not possible to retrieve the text/body from a bounced email with the subtype RFC822

$body_plain = imap_fetchbody($this->stream, $this->msgno, '3.1.1');
$body_html = imap_fetchbody($this->stream, $this->msgno, '3.1.2');

Have created a stackoverflow here..
http://stackoverflow.com/questions/35963146/imap-parse-mail-subtype-plain-html

And I doesn't seem to be the only one with the problem.. Look at this 12 years old user comment.. I don't think the bug has ever been fixed
http://us3.php.net/manual/en/function.imap-fetchbody.php#31685


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Sep 22 18:01:26 2019 UTC