Re: Question about forward action in access_rules.

Michael Yount <[email protected]> Sat, 08 Sep 2007 13:52:17 -0700
Newsgroups gmane.mail.majordomo.majordomo2.devel
Message-ID <[email protected]>
Steven W. Orr wrote:
> I as the list ownerwould like to be receiving a copy of the denied 
> message. So I changed the access_rules so it now looks like this:
>
> post
> forward
> $admin_unsub >= 50
>
> post
> deny, replyfile=UnsubFoundInText
> $admin_unsub >= 50
>
> The idea is to send a copy to the owner and to get the message sent 
> back to the sender.
>
As the access_rules help document explains,

The first rule that matches the command and conditions and that contains
a "terminal" action will cause all succeeding rules to be ignored.

and the "forward" and "deny" actions are both terminal, as indicated in 
the table that follows that explanation.


> Unless I'm reading it wrong, I was expecting both actions to happen, 
> but only the first one does. Also, the docs are not clear on how to 
> set the address (or addresses) to forward to.
>
> forward address
>
> does not work.
>
The help document explains,

Each action can optionally be customized by following its name with an
equals sign and one or more parameters, separated by commas.

Does that need to be reworded?

Why not just use the following rule?

post
forward=address, replyfile=UnsubFoundInText
$admin_unsub >= 50

(and then set the "ackstall" flag for your subscribers.)

Michael