At 17:09 2001-07-16 -0400, James Ervin did say:
1. obviously I can not do a variable assignment inside of a
recipe........should I write a scribe that would assign the variable and
pipe it through it......any other ideas?
I don't follow the logic that you cannot perform variable assignment. As
for making a script and piping it through, see below..
Note that your TO: line may have MULTIPLE addresses on it... what you're
doing is at least ensuring that the TO: includes an address at
externalserver.mysite.org. To: may also include plaintext name text, not
just raw addresses.
2. my first \/ is grabbing everything after "To: " and not stopping at
the @ sign, so even if I could capture it, it still contains the wrong data.
Check docs for MATCH - it doesn't work by stopping at the specified text -
it assigns the match from the beginning of the match to EOL.
Which is why you'd pipe the match through sed or something like that. An
example:
USERID|=echo $MATCH|sed -e
's/@externalserver.mysite.org/@internalserver.mysite.org/g'
:0f
| formail -I "X-VIRUSWARNING: This file had a $MATCH attachment"
! $USER(_at_)internalserver(_dot_)mysite(_dot_)org
What gives with the pipe and forward. Doesn't this upchuck errors at
you? Have you checked your error log? Or did you forget an ":0" line
between these two deliveries?
---
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