On Wed, 18 Feb 2004, Andrew Jayes wrote:

>     my($msgSubject);
>     my($hfile) = "HEADERS";
>     while(<HEADERS>) {

No, no, no!  You aren't opening the file; Perl won't have a clue what you're
trying to do.

Also, the message subject is available in the global variable $Subject
without your having to do any magic.  So just use this:

        if ($Subject =~ /\bparis hilton\b/i) {
            # whatever....
        }

--
David.
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to