procmail
[Top] [All Lists]

Passing variables

2003-09-13 10:36:26
I do a lot of checking in /etc/procmailrc and as part of the checking I use the following:

:0
* ^Subject:(.*\<)?\/[^  ].*
{ SUBJECT=$MATCH }

:0
* ^To:(.*\<)?\/[^ ].*
{ TOHEAD=$MATCH }

:0 h
CLEANFROM=|formail -IReply-To: -rtzxTo:

 # username portion
 :0
  * CLEANFROM ?? ^\/[^(_at_)]+
   {
       UNAME=$MATCH
   }
  # domain portion
 :0
 * CLEANFROM ?? @\/.*
 {
         UDOMAIN=$MATCH
 }
LOG="\"$CLEANFROM\", \"$TOHEAD\", \"$SUBJECT\"$NL"

However, when I try to use the "$UNAME" or $SUBJECT in a .procmailrc, the variables are unassigned. Is there 1) something I am doing wrong 2) some way for those variables to persist to the user's own .procmailrc? I hate to duplicate the code into every .procmailrc.

--
| kremels(_at_)kreme(_dot_)com | www.suthgaylord.com | www.david-dodge.com |

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>