mhonarc-users

RE: email parser

2002-08-06 14:32:36
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(_at_)mhonarc(_dot_)org
[mailto:owner-mhonarc-users(_at_)mhonarc(_dot_)org] On Behalf Of Christopher P.
Lindsey
Sent: Tuesday, August 06, 2002 2:05 PM
To: mhonarc-users(_at_)mhonarc(_dot_)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(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-USERS


---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-USERS

<Prev in Thread] Current Thread [Next in Thread>