Re: [EXIM] filters problem

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Jeffrey Goldberg
Data:  
Para: Peter RATKAI
CC: exim-users
Assunto: Re: [EXIM] filters problem
On Sat, 9 Jan 1999, Peter RATKAI wrote:

> /etc/main.filter:
> # exim filter 
> if error_message then finish 
> elif $header_from contains "quaestor.hu"
> then deliver $header_to:
> save /mail_arch/archive/$sender_address 660
> elif $header_from does not contain "quaestor.hu"
> then deliver $header_to:
> endif                        

>
> all, this is working fine, but:
>
> 0zz7EO-00057r-00 == /mail_arch/archive/peter@??? <message filter>
> T=address_file defer (-6): mailbox /mail_arch/archive/peter@???
> has wrong uid or gid


Szervusz Peter,

As someone else has already said, check the ownership on
/mail_arch/archive/ to see that it matches what you have in the driver.

But also, it seems that you may be taking the wrong approach altogether
for what you are trying to do.

First, get rid of that "elif", and make it an "else" generally,


  if condition
    action1
  else
    action2
  endif


is much safer than

  if condition
    action1
  elif not condition
    action2
  endif


since you might lose things in the latter case if your "not condition"
isn't absolutely perfect.

Also, if action2 is the default action for unseen messages, then simply

  if condition
    action1
  endif


should be enough.

But, I am not sure that a filter is really the best way of achieving what
you are trying to do. It looks like you are trying to save a copy of all
out-going mail. Take a look at the list archives for this list to see
what people have recommended for that.

Udv.,

-j
--
Jeffrey Goldberg                +44 (0)1234 750 111 x 2826
 Cranfield Computer Centre      FAX         751 814
 J.Goldberg@???     http://WWW.Cranfield.ac.uk/public/cc/cc047/
Relativism is the triumph of authority over truth, convention over justice.



--
*** Exim information can be found at http://www.exim.org/ ***