Re: [Exim] Filter on to and cc with same variable?

Góra strony
Delete this message
Reply to this message
Autor: David Woodhouse
Data:  
Dla: Dr Andrew C Aitchison
CC: exim-users
Temat: Re: [Exim] Filter on to and cc with same variable?
On Tue, 2003-03-04 at 11:37, Dr Andrew C Aitchison wrote:

> I've always included tests for $h_to: and $h_cc: to archive the
> copy which I CC to myself when I send mail out.
> It is useful to keep both sides of a correspondence in the same place.


True. It makes more sense to use those headers for filtering outgoing
mail than incoming mail.

> I take your point about $sender_address: being a better way of
> identifying mail sent to a list, but that isn't always what I want.
> For example, if someone forwards a mail from the exim list to me,
> I want that to be filtered as a mail from that person, not a mail
> from the list.


I think we're in violent agreement here. If someone selects a mail in
pine and 'bounces' it to you, and you're filtering on To:, Cc:, List-ID:
or other headers, it'll end up in your list folder. If you're filtering
on $sender_address (i.e. the SMTP reverse-path), then it will end up in
your inbox (or your folder for that person) as you desire.

If they 'forward' it to you, it'll end up in your inbox either way,
unless you're doing the _extremely_ broken thing of filtering on the
random noise that some misguided list admins add to the Subject: header
of list traffic to obscure the _real_ subject of list mail. :)

--
dwmw2