Yes, the configuration seems odd or interesting as you said. The idea behind this is:
Before scripts will be use for filtering spam, when they have SPAM header. Not problem at it.
User scripts will be used for vacation messages. These are created with Squirrelmail and avelsize plugin (user interaction)
After scripts will be used for doing redirections, such as forwarding mail to a blackberry account(not problem at it) or
forwarding to another user account (in the same domain, the problem is here).
The reason not to put the redirections or forwarding in users scripts is to avoid users deleting redirections and have in one file all the redirections.
I also try to use redirections from avelsieve plugin (0.9.9.9) and it works the forwarding but it didn't work the keep command, the mail is
forwarded but the user doesn't have a copy of it.
I will investigate your advice for envelope or try to use user's scripts.
I didn't know about original headers, if this in RFC sieve documents?
Thanks Timo and thanks Stephan for the tips.
Greetings,
Andrés.
Andrés Yacopino. Dpto Sistemas AcaSalud