[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: email parser



That's beautiful... what about attachments?  Can I get the attachments
into a blob field to be decoded at a later date with a MIME decoder ?
or does that sound ridiculous ?

--chad

-----Original Message-----
From: owner-mhonarc-users@mhonarc.org
[mailto:owner-mhonarc-users@mhonarc.org] On Behalf Of Christopher P.
Lindsey
Sent: Tuesday, August 06, 2002 2:05 PM
To: mhonarc-users@mhonarc.org
Subject: Re: email parser

> > Hey guys.  Can I use mhonarc to just pull out the text of the to,
from,
> > subject, and body - I'd like to actually strip all of the tags off
of
> > everything, html included.  This is for insertion into a database.
> 
> You could, but it may better to use the MIME:: and/or Mail:: modules
> to do this if you intend to not use any other aspects of MHonArc.

Or if you're on a UNIX system, you might want to investigate the
procmail
package to extract headers.  formail will do all of these things for
you.

   Display only the body:  formail -I ""
   Display Subject: formail -XSubject:
   Display To: formail -XTo:
   Display From: formail -r -t -XTo:

Chris

---------------------------------------------------------------------
To sign-off this list, send email to majordomo@mhonarc.org with the
message text UNSUBSCRIBE MHONARC-USERS


---------------------------------------------------------------------
To sign-off this list, send email to majordomo@mhonarc.org with the
message text UNSUBSCRIBE MHONARC-USERS


[Index of Archives]     [Bugtraq]     [Yosemite News]     [Mhonarc Home]