Rene Pijlman wrote:
On Fri, 17 Aug 2001 22:49:59 -0500, you wrote:
all my subsequent submissions tagged with 'Approved: my_email_id pwd' are coming back to me as it is.
How did you add the Approved header exactly?
I am adding 'Approved: nkapoor@c3ipros.com' in subject of the email. (I have tried 'Approved: nkapoor@c3ipros.com' as the first line of the message body also)
What are the settings for moderator_PASSWORD and moderated_flag in rc.custom?
#moderated_flag moderated_flag= yes # uncomment this to make the list #moderator_PASSWORD = # put the optional password for RC_LOCAL_SUBMIT_10 = rc.local.s10 # call up customised local scripts RC_LOCAL_SUBMIT_20 = rc.local.s20 # at predefined points.
What's in the moderators file?
nkapoor@xcelenergy.com nkapoor@c3ipros.com
I have tried following but without any luck (all without quotes): 'Approved: my_email pwd' in subject 'Approved: my_email pwd' in body, as first line 'Approved: my_email' in subject 'Approved: my_email' in body, as first line
I'm using the script below as rc.local.s10 and on the first line of the *body* of the message I type:
Approved: pwd
Script:
:0 HB * H ?? !^Approved: * B ?? ^/Approved:.*[^ ] * $!^X-Loop: $\listaddr { # Remove the Approved from the body, and insert it in the header :0 fw | grep -v "^Approved:" | formail -I"$MATCH" }
I am using rc.local.s10 that was there already i.e.
0 * !^Approved * B ?? ^Approved { # Extract the first 'Approve' from the body APPROVE="`grep '^Approved' | head -1`"
# Filter it from the body, and add it to the header 0 fw | grep -v "^Approved" | formail -I"$APPROVE" }
Regards, Nishi