ZF-7142: Get e-mail structure

Issue Type: New Feature Created: 2009-06-27T11:35:16.000+0000 Last Updated: 2009-06-28T03:41:30.000+0000 Status: Resolved Fix version(s): Reporter: J?nis (janis) Assignee: Nico Edtinger (nico) Tags: - Zend_Mail_Storage

Related issues: Attachments:



There is a PHP function "imap_fetchstructure" that tells the transfer encoding of the message (for example "BASE64" or "QUOTED-PRINTABLE"). Currently it seems that Zend framework cannot give this information. But it is important for the very simple case when I just need to list all the e-mails and display their content. Non-ASCII characters are encoded in the content returned by function "getContent" — I cannot display the message in such state to the users. :(



Posted by Nico Edtinger (nico) on 2009-06-27T15:59:39.000+0000

The messages returned by Zend_Mail_Storage implements RecursiveIterator. If you need to flatten the structure use RecursiveIteratorIterator. In every returned part you can use the same methods to get the headers and body of the part. See the docs and the demo for examples.

Posted by J?nis (janis) on 2009-06-28T03:41:29.000+0000

Thank you for the comment! The transfer encoding is indeed obtainable with $oMessage->contentTransferEncoding or $oMessagePart->contentTransferEncoding.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.