:0
* ^Subject: New WorkOrder Request for HISD
{
:0
* B ?? ^Work Order Summary : \/.*$
{
:0
* MATCH ?? ^^\/.+
{ SUMMARY = "$MATCH" }
}
:0
*$ B ?? WO Number +: 0+\/$d$d$d$d$d$d$
{
:0
* MATCH ?? ^^\/.+
{ WONUMBER = "$MATCH" }
:0 fhw
| $FORMAIL -I "Subject: $WONUMBER N $SUMMARY AR"
}
:0 c:
$REMEDY.new-request
}
I have the above in my .procmailrc. At first, I did not have the
MATCH ?? ^^\/.+
tricks for removing newlines, and I was getting snagged by that. My subjects
were ending up with two embeded newlines, throwing the rest of my filters off.
Even
# note the +, not a *
:0
* B ?? ^Work Order Summary : \/.+$
...
was not working.
So when I discovered the trick in Jari's pm-tips.txt, I tried it and it worked
perfectly. What I am not sure of is *why do I need it*? Since . does not
match newline, isn't \/.*$ enough to get the line without the newline? Or is
there something I'm forgetting about procmails regex engine?
JcL
--
Justin C. Lloyd Harris Corporation, ISD Voice 407/984-5558
jlloyd(_at_)harris(_dot_)com 505 John Rodes Blvd. Fax
407/984-6323
Unix System Administrator Melbourne, FL 32935 Office W3/1811B