ietf-mta-filters
[Top] [All Lists]

Re: Duplicated header lines

1999-01-25 14:53:38
At 10:29 PM 1/21/99 -0500, Lawrence Greenfield wrote:

Currently, my implementation is broken---it tests only against the
first (or maybe last) header of that name---but it's quite possibly
that I want to see if I'm mentioned explicitly in the "To" header, and
this will break if there are multiple "To" headers.

I've thought about fixing this by appending the contents of a header
that appears multiple times together, possibly with a \r\n in
between.  (I'm lazy.)

Tim suggested that instead a header test be run against each instance
of the header, and the result OR'd together.  (But this is also easy.)

My Sieve implementation runs the test against all instances of the header.
(I was specifically thinking of "Received" when I wrote the code, as I use
a number of spam filters that examine "Received" headers, but the code does
this for all headers.)

<Prev in Thread] Current Thread [Next in Thread>