[Mpls-pm] Parse Email

Joe Stuart jj_stuart at yahoo.com
Thu May 29 09:29:02 PDT 2008


--- Ian Malpass <ian at indecorous.com> wrote:

> Joe Stuart wrote:
> > Hi,
> > I have setup an email server to pass an email to a
> > perl script. I am having a problem finding a
> module
> > that will strip everything except the text that
> the
> > user typed in the message body. I have been using
> > Mail::Internet, but for example, when I send a
> message
> > from outlook or Yahoo, a lot of extra text comes
> > through. Here is what I am using
> 
> What sort of extra text? HTML markup around the
> text? Or actual text 
> that's been added? Outlook and Yahoo send HTML mail
> by default, I think.
> 
> I've tended to use modules in the Email:: namespace.
> The Perl Email 
> Project maintains a list of modules they recommend: 
>
http://emailproject.perl.org/wiki/Category:PEPEndorsed
> 
> Ian
> 

I've done some more testing and it looks like it is
only a problem with messages that are getting
forwarded. Here is an example of what yahoo sends in
the message.



This is me forwarding the message





by mta112.mail.re1.yahoo.com with SMTP; Thu, 29 May
2008 04:46:43 -0700
h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID;
b=skFFWK0ltVh7zJEiIvf6l2jNz8MZ8QPwm/L7XNaHuCPAxLI59O1a5w4kqa6ZDRTfchYnKuuHs/WpoBXbGeUuuaDYK8FKIGSrnGCdt8uD0BUfWm2Ua99L4ZqMtUKICIwqbHR3awmX170tiTASnLeFHOAqfEhwfGVmDXBEBma+rl0=;
X-YMail-OSG:
4a_ElqoVM1kRFzqKX0HDitzhzmSwnZitzqYNGEZR9vPtKRAip7ekwfBHEAKD2_2DGOlvI07kRqpQlvxEQ3wQmF5C92OeeAtH
Date: Thu, 29 May 2008 04:46:42 -0700 (PDT)
To: Joe Stuart

Another test

> This is my test.
>



Thanks for the link, I'll check out those modules. 


      


More information about the Mpls-pm mailing list