Re: [Exim] faq 9817 about taking copies - no work?

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Philip Hazel
Data:  
Para: Hana Breyer Priselac
CC: 'exim-users@exim.org'
Assunto: Re: [Exim] faq 9817 about taking copies - no work?
On Thu, 1 Mar 2001, Hana Breyer Priselac wrote:

> I need to take copies of all incomming mail for certan users, quite the same
> like in FAQ 9817.
> I've tried doing exactly the same thing as stated in the faq with the
> following problem: if a message is to be delivered to more than one
> recipients, and more than one of them is in my list for copying, only the
> first one gets a copy thorough a message filter, aldough there are more
> recipient addresses that match in the copying list.
>
> Here is a relevant part from my system filter:
>
>            if foranyaddress $recipients


The problem is that foranyaddress stops when it finds a matching
address. The code in 9817 solves the problem "If any of these addresses
is in the list, send a copy to xxxx". What you are trying to achieve is
"For *every* address that is in the list, send a copy to yyyy, where
yyyy depends on the address."

In other words, you are trying to do per-address processing. The best
way to do this is not to use a filter file, but to use a director with
the "unseen" option set.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.