php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7496 imap_fetchbody handling of part numbers in forwarded messages
Submitted: 2000-10-27 18:56 UTC Modified: 2000-12-07 11:59 UTC
From: owain at vaughan dot com Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.3pl1 OS: SunOS 5.7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: owain at vaughan dot com
New email:
PHP Version: OS:

 

 [2000-10-27 18:56 UTC] owain at vaughan dot com
With forward messages that have a text/plain (2.1.1) and
text/html (2.1.2) subpart of a multipart/alternative part
(2.1) the imap_fetchbody function returns nothing for parts
2.1.1 and 2.1.2, but returns the parts when a request is made
for 2.1 and 2.2.

Part 2.1 should really return nothing, as it contains two
alternative subparts, and part 2.2 doesn't even exist.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-28 02:11 UTC] chagenbu@php.net
Do you have code to reproduce this? I've replicated the message you describe, and IMP (a webmail client written in php) handles it fine - the parts are 2.1.1 and 2.1.2, and fetching them produces the expected results.
 [2000-10-28 02:13 UTC] chagenbu@php.net
the exact test message might also be useful...
 [2000-12-07 11:59 UTC] sniper@php.net
Reopen, if this still happens when using latest snapshot
from http://snaps.php.net/

--Jani
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 18:01:31 2025 UTC