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

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Paulo Andre
CC: exim-users, Andrew Nelson
Subject: 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