Hi
I am trying write some rules for sendmail.
I found an example for removing brackets from adress like:
"Fred Thompson <fred@somewhere.com>"
The example rule file (/tmp/testrules) should look like this:
#Add S3 at top of file
S3
R$ *$: < $1 >housekeeping<>
R$+ <$*> <$2>strip excess on left
R<$*> $+ <$1>strip excess on right
R<> $@ <@>MAIL FROM:<>case
R<$+> $: $1 remove housekeeping<>
next it tels me to execute the line:
echo "3 Fred Thompson<fred@somewhere.com>" | sendmail -C/tmp/testrules -d21.12 -bt
But I get different result as it is shown in the example.
I get massage: line3: Inappropriate use of $: on LHS
and
line6: invalid rewrite line ...
I probably have the tabs and spaces wrong in the rules but it's not cleare in the example where to use them.
Can anybody help me pls.