<<< Date Index >>>     <<< Thread Index >>>

Re: What am I doing wrong?



* Adam Shostack <adam@xxxxxxxxxxxx> [07-11-04 20:49]:
> I'm trying to enhance my anti-spam to save messages that get through
> my filters.  However, the rules below seem to save the message to a
> file called ~/etc/wait_key=no>|razor-revoke;<save-entry>.spam-missed
> 
> I note that save-message is magically transformed into save-entry, and
> would appriciate any advice as to what's wrong or how to do this
> properly.
> 
> message-hook "~h RAZOR" "unignore X-Spam-Status"
> macro index S "<set 
> wait_key=no>|razor-revoke;<save-message>.spam-missed<enter><reset wait_key>" 
> "report message to Vipul's Razor"

try
macro index S ":set wait_key=no|razor-revoke; \
 <save-message>.spam-missed<enter> reset wait_key" \
 "report message to Vipul's Razor"


 enter-command (default: `:'')
 
 This command is used to execute any command you would normally put in a
 configuration file.  A common use is to check the settings of variables,
 or in conjunction with `macros'' to change settings on the fly.
  
  
 Named functions such as save-message are enclosed with <> whereas the
same functions mapped to key 's' is not.  The above macro could be
written as:

macro index S ":unset wait_key|razor-revoke; \
 s.spam-missed\n set wait_key" \
 "report message to Viput's Razor"

s=<save-message>
\n=<return>


note: not tested


-- 
Patrick Shanahan                        Registered Linux User #207535
http://wahoo.no-ip.org                        @ http://counter.li.org
HOG # US1244711           Photo Album:  http://wahoo.no-ip.org/photos