procmail rules

Catalin Bucur <[email protected]>
Newsgroups gmane.org.user-groups.rlug.general
Message-ID <[email protected]>
Salutare,


Incerc sa rulez ca user obisnuit o regula de procmail, astfel incat 
pentru fiecare mesaj nou sa creez un folder nou si in el sa salvez mesajul.

In concluzie scriptul arata cam asa:

:0c:
   * ^Subject: alabala.*
   | VAR=`echo $MATCH | tr [:lower:] [:upper:]`; mkdir -p $VAR

:0
   $VAR/$VAR-`date +%s`.eml

Doar ca variabila VAR nu vrea sa fie globala in niciun fel am incercat. 
Probabil ruleaza intr-un environment prima regula, apoi in momentul in 
care vrea sa salveze mesajul totul se petrece intr-un alt environment, 
asa ca VAR este blank.

Cum il pot "pacali" sa inteleaga ce vreau?


Mersi,
-- 
Catalin Bucur
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.