Imap and attachments
| From: | Evert | Rooftop Solutions | Date: | Thu, 10 Mar 2005 20:38:35 +0000 |
| Subject: | Imap and attachments | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-210468@lists.php.net to get a copy of this message | ||
Hi,
I started using the IMAP functions and ran into a problem with some headers for attachments.
The first one is:
Content-type: image/psd; x-unix-mode=0644; name=FinalVersion6.psd
Content-transfer-encoding: base64
Content-disposition: inline; filename=FinalVersion6.psd
Generated by Mac Mail. The filename wont show up in the result of for example imap_fetchstructure.
The second is:
Content-Type: text/plain
Content-Disposition: attachment;
filename="Video(019).3gp"
Content-Transfer-Encoding: base64
I suspect this one has something to do with the linebreak. It's generated by a modern nokia (7650 I think)
I additionaly found a problem calling imap_fetchbody with a non-existent msg number. This will result in a segfault.
grt,
Evert