- Edited
IN api FOLDER THIS PATCH FIXES EMBEDDED IMAGES AS ATTACHMENTS FROM OUTLOOK 2007
The normal attachment logic looks for “disposition” and then tests it and ctype.
THIS IS NOT ELLEGANT, not configurable in present form, and will not filter small images which would likely be signature images or backgrounds.
But hopefully it will start someone on the right track. Maybe I’ll improve it later.
--- pipe.php.ORIGINAL Thu Mar 4 23 2010
+++ pipe.php Fri Mar 5 01 2010
@@ -125,6 +125,13 @@
if($filename && $cfg->canUploadFileType($filename)) {
$ticket->saveAttachment($filename,$part->body,$msgid,'M');
}
+//THIS PATCH ADDS THE ABILITY TO SAVE EMBEDDED IMAGES IN AN HTML EMAIL FROM OUTLOOK 2007
+ } elseif (!($part->disposition)
+ && (!strcasecmp($part->ctype_primary,'image')) ) {
+ $filename=$part->ctype_parameters;
+ if($filename && $cfg->canUploadFileType($filename)) {
+ $ticket->saveAttachment($filename,$part->body,$msgid,'M');
+ }
}
}
}