At 04:34 PM 3/9/2004, Matt Kettler wrote:
At 04:16 PM 3/9/2004, Mark London wrote:
>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



You mean like this standard rule from SA 2.50 and higher?

header FROM_NO_LOWER            From !~ /[a-z]/
describe FROM_NO_LOWER          'From' has no lower-case characters

Whoops.. my bad, that looks for a no-lower email address..

Let's instead look at a rule from sa 2.30 through sa 2.44:

header ALL_CAPS_HEADER            ALL =~ /\n(?:TO|FROM|SUBJECT|DATE):/s



Reply via email to