Hello,
I manage a mailing list and I would like to check if the user include the
codes:
[APX], [TRT],[SEC] or [PRS] in the subject of their messages. If not, I
would like to automate an answer from a 'rules.txt' file and submit the
message to the list anyway.
I wrote a recipe:
:0 hc
*!^Subject.*[(APX|TRT|SEC|PRS)]
*!^FROM_DAEMON
*!^X-Loop:.*
| (formail -r -t -A"Precedence: junk"\
-I"From: Auto-Corrector"\
-A"X-Loop: apex-list(_at_)dentfrance(_dot_)org";\
cat $HOME/rules.txt) | $SENDMAIL -t
I would like to know if the recipe is OK to do that?
and where I have to put it, so Smartlist can use it?
anywhere in rc.submit?
somewhere specificly in rc.submit?
somewhere else?
Please answer to: greg(_at_)dentfrance(_dot_)org
Thank you for your help.
Dr Gerard Gourion
(Paris France)