There are external programs to do this that are already written. Take a
look at Timo's tips.
curtis
On Fri, 6 Jun 2003, Professional Software Engineering wrote:
At 09:20 2003-06-06 +0200, Frank =?UNKNOWN?Q?N=F8rvig?= wrote:
Is it possible to extract part of a body, ex. only the "Content-Type:
text/plain;" part?
Can it be done with formail?
formail doesn't do that.
If you write an external prog (in C, Perl, whatever), you can assign it to
a variable in procmail:
:0
TEXTPART=|/path/to/your/program
sed strikes me as a possible way to do what you want.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
--
--
Curtis Maurand
mailto:curtis(_at_)maurand(_dot_)com
http://www.maurand.com
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail