Re: [exim] email archiving to file using router and transpor…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Paulo Andre
CC: exim-users, Andrew Nelson
Sujet: Re: [exim] email archiving to file using router and transport?
On Thu, 18 Nov 2004, Paulo Andre wrote:

> > As the OP said, it's because there may be many recipients and the filter
> > runs only once.
> >
>
> So If I needed to save the email for just a specific user how would I go
> about it?


Write an appropriate condition in the filter.

(1) For mail *to* that user, check the contents of $recipients.

(2) For mail *from* that user, check the contents of $sender_address.

You could probably also do this by special purpose routers with the
"unseen" option.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book