From: Jim W. <spi...@us...> - 2007-06-06 00:33:21
|
Update of /cvsroot/moregroupware/mgw/modules/webmail2/inc In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4840 Modified Files: readmessage_inc.php Log Message: Finally something that parses the attachments out of Apple Mail formatted emails even if the Apple Mail user doesn't select the Windows-Friendly option. Essentially this patch fully parses multipart/appledouble and passes the embedded attachments to the main email attachment array for proper display. The "applefile" resource fork parts are ignored. Index: readmessage_inc.php =================================================================== RCS file: /cvsroot/moregroupware/mgw/modules/webmail2/inc/readmessage_inc.php,v retrieving revision 1.75 retrieving revision 1.76 diff -C2 -d -r1.75 -r1.76 *** readmessage_inc.php 22 Jan 2007 23:15:31 -0000 1.75 --- readmessage_inc.php 6 Jun 2007 00:33:18 -0000 1.76 *************** *** 294,297 **** --- 294,298 ---- if ($ctype_full=="multipart/alternative" || $ctype_full=="multipart/mixed" || + $ctype_full=="multipart/appledouble" || $ctype_full=="multipart/related") { $both_parts_key = get_both_html_and_plain_version_key($part); *************** *** 302,305 **** --- 303,309 ---- list($tmp_body_show,$tmp_result)=make_emailbox_array($party); $my_body_show.=$tmp_body_show; + if (count($tmp_result[11])>0) { + $mail_attachments[] = $tmp_result[11][0]; + } } } elseif ($ctype_full=="message/rfc822") { |