How to parse e-mail messages?

Discussion in 'Perl Misc' started by Experienced but Undocumented, Oct 11, 2003.

  1. Is there a PERL module that will parse raw e-mail messages? I'm using
    Net::pOP3 to download them off a server, but I would like to strip any HTML
    or Rich Text and just leave plain text.

    Thanks if anyone can offer suggestions.
     
    Experienced but Undocumented, Oct 11, 2003
    #1
    1. Advertising

  2. Experienced but Undocumented

    Anno Siegel Guest

    Experienced but Undocumented <> wrote in comp.lang.perl.misc:
    > Is there a PERL module that will parse raw e-mail messages? I'm using


    Lots. When you search CPAN for "Mail" and "Email", you'll find them.

    > Net::pOP3 to download them off a server, but I would like to strip any HTML
    > or Rich Text and just leave plain text.


    A mail module is unlikely to understand HTML or RTF. While you're at it,
    search for those keywords too.

    Anno
     
    Anno Siegel, Oct 11, 2003
    #2
    1. Advertising

  3. I found a module to do the work. Mime::parser works well. Thanks, Anno,
    for your suggestions, too :)

    Graham


    "Experienced but Undocumented" <> wrote in message
    news:J%Ihb.65435$pl3.62702@pd7tw3no...
    > Is there a PERL module that will parse raw e-mail messages? I'm using
    > Net::pOP3 to download them off a server, but I would like to strip any

    HTML
    > or Rich Text and just leave plain text.
    >
    > Thanks if anyone can offer suggestions.
    >
    >
     
    Experienced but Undocumented, Oct 12, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    19
    Views:
    1,143
    Daniel Vallstrom
    Mar 15, 2005
  2. ameyas7
    Replies:
    6
    Views:
    4,340
    ameyas7
    Aug 6, 2007
  3. Replies:
    5
    Views:
    1,218
  4. Simon Brooke
    Replies:
    1
    Views:
    1,185
    Stanimir Stamenkov
    Jun 20, 2010
  5. 7stud --

    optparse: parse v. parse! ??

    7stud --, Feb 20, 2008, in forum: Ruby
    Replies:
    3
    Views:
    192
    7stud --
    Feb 20, 2008
Loading...

Share This Page