Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
Description
It is not possible to get the raw content of the DeliveryStatus part. The easiest solution would be to treat that part as an ezcMailText or ezcMailFile instead of an ezcMailDeliveryStatus. There is no need to parse headers and body into the message and recipient arrays etc.
There already is an option to treat text parts as files: $parseTextAttachmentsAsFiles
I need something like: $parseDeliveryStatusAttachmentsAsText
Perhaps it makes sense to make every part flexible, so you can treat text parts as files, delivery status as text and rfc822 as files for example. For webmailers for example you want only the text/plain and text/html as text, all other parts should be files so the user can download them easily. There is no need to parse them into complex objects like ezcMailRfc822Digest or ezcMailDeliveryStatus.