procmail
[Top] [All Lists]

Variables in Checks

2008-03-22 11:53:37
Hello,

I have made MANY filters for procmail and want to make them  availlable
global to all users which then can include it using for example:

    INCLUDERC=/usr/share/tdtools-procmail/FLT_outlook

but since the filters need some EnvVars they must called e.g. with

    WLIST=some_list
    INCLUDERC=/usr/share/tdtools-procmail/FLT_outlook

OK, this is working but now I have hit a problem by using:

----[ '/usr/share/tdtools-procmail/FLT_cced' ]--------------------------
:0
* ^Envelope-to:.*(${TO_ADDRESSES})
{ 
  LOG="${SERNO}FLT_cced          : pass${NL}"
  
  :0
  * ^TO_.*(${IN_ADDRESSES})
  .ATTENTION${MSG_DATE}.FLT_cced/
}
------------------------------------------------------------------------

since I can not use in my ~/.procmailrc:

----[ '~/.procmailrc' ]-------------------------------------------------
  TO_ADDRESSES="linux4michelle|michelle.konzack"
  IN_ADDRESSES="bind-users|lists.php.net|postgresql.org|procmail(_at_)lists"
  INCLUDERC=/usr/share/tdtools-procmail/FLT_cced
------------------------------------------------------------------------

If I write the two EnvVars directly into the () then it works. <grmpf>

Any ideas HOW to get those two variables running in my FLT?

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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