Page 1 of 1

override behaviour for redirect adn retain rules

Posted: Wed Aug 29, 2007 3:50 pm
by rich
Hi,

I have a problem with the Rules. I use the sxaa tool to create forward rules to staff blackberries.

./sxaa --user [user] --title [rule name] --redirect [blackberry email address] --retain

However, the problem is that the "--retain" is saving all the messages and overriding any filter rules for subject or sender. SPAM gets tagged and the subject is prefixed with a tag, however the redirect rules, with retain, keeps these messages and negates the filter to file these messages into a SPAM folder.

Is there a fix?

thanks.

Posted: Wed Aug 29, 2007 7:03 pm
by jaime.pinto
There are many tricks that we can come up with using sxaa, aliases, .procmaiilrc, .forward and Scalix internal rules. You need to determine exactly what you want and decide on the sequence of processing. Somebody will then be able to suggest the best approach. SAC alone is very poor to address that many redirection/filtering strategies.

In your case for example, if I understood well, what you ultimately want is that a copy of what would "normally" end up in the Inbox to be sent to the BlackBerry.. Please confirm.

Another post with lack of clarification:
viewtopic.php?p=39235#39235

Posted: Thu Aug 30, 2007 8:26 am
by btisdall
Hi Rich,

you can add a filter to your rule to make it conditional, e.g.

Code: Select all

sxaa --user foo --redirect foo@bar.org --retain --header 'X-Spam-Status: No' --title 'FWD BB NOTSPAM'


Run sxaa with no arguments or options to see the full help.