6.0.0-beta1
8/10/25

[#12190] Incorrectly parses BODYSTRUCTURE
Summary Incorrectly parses BODYSTRUCTURE
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester stuart.carnie (at) gmail (dot) com
Created 04/18/2013 (4497 days ago)
Due
Updated 04/18/2013 (4497 days ago)
Assigned
Resolved 04/18/2013 (4497 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/18/2013 08:52:51 PM Michael Slusarz Comment #3
Assigned to Michael Slusarz
State ⇒ Resolved
Priority ⇒ 1. Low
Reply to this comment
Horde_Imap_Client 2.8.2.  A rare server that is not sending any 
information for the 'envelope' parameter, which was causing us to 
misparse all trailing data.
04/18/2013 08:45:15 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit af0f04dd8cd997e4eb18c50d4906fffe52151a67
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Thu Apr 18 14:36:12 2013 -0600

     [mms] Correctly parse message/rfc822 BODYSTRUCTURE responses if 
the server does not provide any envelope information (Bug #12190).

  .../Imap_Client/lib/Horde/Imap/Client/Socket.php   |   11 +++++++----
  framework/Imap_Client/package.xml                  |    4 ++--
  .../test/Horde/Imap/Client/SocketTest.php          |   19 +++++++++++++++++++
  3 files changed, 28 insertions(+), 6 deletions(-)

http://git.horde.org/horde-git/-/commit/af0f04dd8cd997e4eb18c50d4906fffe52151a67
04/18/2013 09:33:23 AM stuart (dot) carnie (at) gmail (dot) com Comment #1
Priority ⇒ 3. High
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ Incorrectly parses BODYSTRUCTURE
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
When parsing the following structure, the parser fails to interpret 
the "ALTERNATIVE" entity correctly:

* 862 FETCH (X-GM-MSGID 1418183275598487829 UID 5565 BODYSTRUCTURE 
((("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "QUOTED-PRINTABLE" 
1112 52 NIL NIL NIL)("TEXT" "HTML" ("CHARSET" "us-ascii") NIL NIL 
"QUOTED-PRINTABLE" 8149 194 NIL NIL NIL) "ALTERNATIVE" ("BOUNDARY" 
"_000_8F9CBFD3A05011448603998C351D400CD1D065P3PWEX2MB009ex2se_") NIL 
NIL)("MESSAGE" "RFC822" NIL NIL NIL "7BIT" 1290 NIL ("ATTACHMENT" 
("CREATION-DATE" "Fri, 09 Nov 2012 18:16:04 GMT" "MODIFICATION-DATE" 
"Fri, 09 Nov 2012 18:16:04 GMT")) NIL) "MIXED" ("BOUNDARY" 
"_004_8F9CBFD3A05011448603998C351D400CD1D065P3PWEX2MB009ex2se_") NIL 
NIL) BODY[] {13511}
Delivered-To: ...

Saved Queries