CodeIgniter Forums
Parsing Email Body For The Reply Text - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Parsing Email Body For The Reply Text (/showthread.php?tid=54063)



Parsing Email Body For The Reply Text - El Forum - 08-21-2012

[eluser]mDonchev[/eluser]
Hello Guys,

I have set a pipe for a certain email to a CI method and I can get the email's properties.

However I need to get <b>just</b> the replied text from the whole email's body text.
Also I will need collect the attachments of the email (but avoid signature/template images) .

Can someone with experience share thoughts.

Will highly appreciate it.

Thanks
Martin


Parsing Email Body For The Reply Text - El Forum - 08-21-2012

[eluser]DarkManX[/eluser]
If you got all properties you should be able to parse the body for the reply. All the previous traffic should be taged in in some kind of container or follow certain pattern. Just delete this container on you will get the pure reply text. You always should be able to store the appached files with your given properties on your server and handle them however you want to.