procmail
[Top] [All Lists]

(no subject)

2001-03-21 08:27:06
Dear all,

The following recipee is missbehaving. What I want it to do is:

- First:  Trap all mail going to several mailing lists (by checkin the
headers)
- Second: If first is true, check whether or not the mail has <html> on its
body (by    checking the body).
- Third:  If so, feed the mail to a file on /tmp and use a custom script to
reply.
- Do nothing is none of the above.

I think I have a problem on the First step. Can anyone help?


file_name = `date +%s`

* !^FROM_DAEMON
* !^majordomo(_at_)bus(_dot_)ucf(_dot_)edu
        :0 H
        *
cba(_at_)bus(_dot_)ucf(_dot_)edu|cbafac(_at_)bus(_dot_)ucf(_dot_)edu|cbastf(_at_)bus(_dot_)ucf(_dot_)edu|cba(_at_)atlantis(_dot_)bus(_dot_)ucf(_dot_)e
du
        {
        :0 B
        * ()<HTML>
        * ()</HTML>
        {
                :0 c
                /tmp/$file_name.txt

                :0
                | /usr/local/bin/html_bouncer.pl $file_name.txt
        }
}

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