procmail
[Top] [All Lists]

Variable in procmailrc

2002-08-29 02:18:57
Hello,

I have already a little filter in use. It looks for ftp-admin in the 
"To:"-Field and for "ftp-liste" in the subject line. Now I'd like to add 
following feature: it should look for a username in the subject field too.
But here I have the problem, how can I insert a loop for matching username in 
procmailrc?

Here is my procmailrc:

VERBOSE=yes
LOGFILE=/var/log/procmail/procmail.log

:0
* ^TOftp-admin
* ^Subject:.*ftp-liste
* ! ^X-Loop: ftp-admin(_at_)mydomain\(_dot_)net
{

:0 c :
| sudo /usr/sbin/ftp-mail-text.cfg > /etc/ftp-mail-text.txt

:0 c
| ( formail -r -A "X-Loop: ftp-admin(_at_)mydomain(_dot_)net" -I "From: 
ftp-admin(_at_)mydoamin(_dot_)net" -I "MIME-version: 1.0" -I "Content-Type: 
multipart/mixed; boundary=\"htmlfilexyz\"" ; echo "--htmlfilexyz" ; echo 
"Content-type: TEXT/PLAIN; charset=ISO-8859-1" ; cat /etc/ftp-mail-text.txt ; 
echo "" ; echo "--htmlfilexyz" ; echo "Content-Type: TEXT/HTML ; 
charset=ISO-8859-1; name=\"files.html\"" ; echo 
"Content-Transfer-Encoding:8bit" ; echo"" ;  cat /tmp/files.html ; echo 
"--htmlfilexyz--" ) | $SENDMAIL -oi -t
}

Thanks for advice please.

M. W.



-- 
What a WORLD: Bush, Blair, Berlusconi, Butin [...] and B-Stoiber? 
aaaAAARRRGGGHHH!!!

_______________________________________________
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>