Obtaining the original email from a forward
Posted on 2002-05-29
I want to be able to extract the original message from one that has been forwarded by a variety of email clients. I have tried some simple regex stuff - taking all lines beginning with '>', grabbing everything beneath a line saying 'forwarded message' and so on. With hundreds of email clients out there, the cases that my code has to handle is becomming very large.
Does anyone have any advice or know of any module (I tried a CPAN search) that could help?