On Tuesday, May 27, 2003, at 13:41 Canada/Mountain,
procmail(_at_)deliberate(_dot_)net wrote:
Could someone please show me a way, hopefully within
procmail, to "cleanup" the text of a subject line, captured in a
variable called SUBJECT, such that I can write it out in a single
line record to my .txt file for later dbase manipulation? In my
case, truncation is preferrable to external program calls.
MYLOGFILE=$HOME/procmail.log
LOGFILE=$MYLOGFILE
* ^Subject:(.*\<)\/[^ ].*
{ SUBJECT=$MATCH }
:0
* ^To:(.*\<)\/[^ ].*
{ TO=$MATCH }
:0
* From:(.*\<)?\/[a-z0-9=+_-]+@
{ FROM=$MATCH }
LOGFILE=$HOME/.sub-to-from.csv
LOG=\"$SUBJECT\",\"$TO\",\"$FROM\"$NL
LOGFILE=$MYLOGFILE
should do
--
There are 10 types of people in the world: Those who understand binary,
and those who don't.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail