in reply to Re^3: perl remove mail(textfile) header(eg. title, from,Delivered-To,Received)
in thread perl remove mail(textfile) header(eg. title, from,Delivered-To,Received)

thanks so much talexb ur code are so helpful^^

if my email got html code how am i goin to exclude the html tag... the example mail with html tag

<title>Cable companies cracking down on Wi-Fi</title>

i only wan the contain after the html tag are remove so it would be

Cable companies cracking down on Wi-Fi

  • Comment on Re^4: perl remove mail(textfile) header(eg. title, from,Delivered-To,Received)
  • Download Code

Replies are listed 'Best First'.
Re^5: perl remove mail(textfile) header(eg. title, from,Delivered-To,Received)
by talexb (Chancellor) on Apr 27, 2009 at 16:47 UTC

    I can't recommend any module in particular -- a quick look on CPAN shows HTML::Strip as the first module I found that might do the job.

    While it's tempting to say, "Hey, I can do that with a regular expression!", you'll probably find that it rarely works as well as you expect.

    HTML E-Mail sometimes contains the HTML version of the message in one section, and the text only version in another section -- you might want to check that out as well.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

      but don noe why i dont seem can use any module... maybe i didnt install it... and having problem to install it

      hope u can show me with regular expression

        Yes, even you can use CPAN

        If you have a problem installing a module and don't tell us about this problem, how are we supposed to help you?