I think I have found a bug in mail parser. When a mail has a HTML file attached, the content of the HTML file is parsed as HTML-content, not as an attachment. Here is a dump of a part recieved from a walkParts(); function
ezcMailText#1 ( [ezcMailText:properties] => array ( [text] => '<html><body><h1>It works!</h1></body></html>' [charset] => 'utf-8' [encoding] => '8bit' [subType] => 'html' [originalCharset] => 'us-ascii' ) [ezcMailPart:headers] => ezcMailHeadersHolder#2 ( [ezcMailHeadersHolder:lookup] => array ( [content-disposition] => 'Content-Disposition' [content-type] => 'Content-Type' [content-transfer-encoding] => 'Content-Transfer- Encoding' ) [ezcMailHeadersHolder:map] => array ( [Content-Disposition] => 'attachment; filename=att2.html' [Content-Type] => 'text/html; x-mac-hide- extension=yes; x-unix-mode=0644; name="att2.html"' [Content-Transfer-Encoding] => '7bit' ) ) [ezcMailPart:excludeHeaders] => array() [ezcMailPart:properties] => array ( [contentDisposition] => ezcMailContentDispositionHeader#3 ( [disposition] => 'attachment' [fileName] => 'att2.html' [fileNameLanguage] => null [fileNameCharSet] => null [creationDate] => null [modificationDate] => null [readDate] => null [size] => null [additionalParameters] => array() [additionalParametersMetaData] => array() ) [size] => 48 ) ) class of object listed above is ezcMailText but you can find [Content- Disposition] => 'attachment; filename=att2.html' inside of it. -- greetings, Jacek Wieczorek -- pozdrawiam, Jacek Wieczorek -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components