Autor: Burhan Khalid Datum: To: exim-users Betreff: Re: [exim] Store (not deliver) messages if sent to/from an address
On 12/12/05, Marc Sherman <msherman@???> wrote: > Burhan Khalid wrote:
> >
> > I'm having a trouble trying to google what kind of filter I would
> > write if I want to *archive* and not deliver messages matching a to
> > and a from address.
>
> Archiving is delivery, to a file.
>
> > In other words, if email is from x@??? and is addressed to b@???
> > then store in /foo/bar and not deliver.
>
> Just use a redirect router, with appropriate conditions to match the
> addresses, and deliver to the appropriate /foo/bar file in the data option.
I experimented with this in a filter:
if $header_from: is "me@???"
then
save "/home/domain/test"
endif
For testing purposes, I chmod /home/domain/test to 777 -- but this
failed in that the emails were delivered and nothing was stored. I
will try with the router option (now that I know that is what I need).