initial commit
[m6w6/m6w6.github.io] / _posts / 2006-01-27-imapsavebody.md
1 ---
2 title: imap_savebody()
3 author: m6w6
4 tags:
5 - PHP
6 ---
7
8 If you -like me- were suffering from being unable to load big attachments
9 through ext/imap because of PHPs memory limit, the new imap_savebody()
10 function should be what you were looking for. It adds the ability to save any
11 section (full mail, too) of a mail message to a file or stream.
12
13 Adding it implied a non-trivial change to ext/imap, so if you encounter any
14 new problems -with f.e. imap_fetchbody()- speak up ASAP, please! ;)