Those sections are defined by:
Code: Select all
Content-Type: multipart/mixed; boundary="----=_NextPart_000_58b1_26fb_1faf"Code: Select all
------=_NextPart_000_58b1_26fb_1faf
Content-Type: text/plain; format=flowed
this is the message
------=_NextPart_000_58b1_26fb_1fafMy question is, how should I search through the source and extract (then work with) these sections? Emails are likely to be a few Mb's due to attachments.
Should I:
Code: Select all
explode($boudary, $email_source);find the occurences of 'boundary' and substr them
or
use some sort of preg_match()
??????