My understanding is the header rules need to match on case.
So "From =~" isn't going to match a FROM: header.
A test for "FROM =~" presumably would.

Or probably you could (untested) do something like:

header ALL =~ /^(?:FROM|TO)\:\s/

        Loren

----- Original Message ----- 
From: "Mark London" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 09, 2004 1:16 PM
Subject: Testing for all capital headers, like FROM:, TO:, etc. ?


> Is there a way to test to see if a header is all caps, i.e. a way to tell
if a
> header line is FROM: rather than From:?  Thanks.
>
> Mark
>

Reply via email to