On Fri, 2009-08-14 at 17:17 -0300, Andrés Yacopino wrote:
> I am trying to use sieve_after to execute some redirection of mails.
> 
> I have put in the after script:
> 
> require "include";
> require "fileinto";
> 
> if header :contains ["To","Cc"] "us...@acasalud.com.ar"
> {
>    keep;
>    redirect "us...@acasalud.com.ar";
> }

So that's a global script, right?

> The redirection works but the sender user (userA) get the following error:
..
> <us...@acasalud.com.ar 
> <http://10.11.0.21/webmail/src/compose.php?send_to=ayacopino%40acasalud.com.ar>>:
>  mail forwarding loop

I suppose it's because when usera sends to userb, userb executes the
global script again and the mail is redirected to userb again, which
triggers the loop detection. Either disable after script from userb or
add some check there so that it doesn't get redirected again.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to