procmail
[Top] [All Lists]

Stripping out Header details

1998-01-29 02:41:30
Can anybody tell me how to get Procmail to strip header data,
mime info etc. out of  a message befor it saves it to a file ? I have
a  recipe which saves messages to a file with a timestamp then passes
control 
to a cgi script as follows, but the file /prospur/AOG/ymdHMS should only
contain the
subject and message text, not headers etc. Any ideas ? 
  :0 c
*^(To|cc):.*AOG@(radiosydney\.com)
{
:0 c
prospur/AOG/`date +%y%m%d%H%M%S`  
 :0:
| perl -s ./cgi-local/procmail.cgi -filename="prospur/AOG/`date
+%y%m%d%H%M%S`"
}
   Many Thanks
   Rod Butcher

<Prev in Thread] Current Thread [Next in Thread>
  • Stripping out Header details, Rod Butcher <=