Community Discussions and Support
Mercury Rule processing

Square brackets are reserved characters in regular expressions, so you need to do something like this to make it work:

If expression headers matches "*X-AC-Weight: [[]####] (Whitelisted) -9999*" Goto "Exit Rules"

See Mercury help for more details about regular expressions.

/Rolf 

<p>Square brackets are reserved characters in regular expressions, so you need to do something like this to make it work:</p><p><span class="Apple-style-span" style="font-family: Tahoma, Arial, Helvetica; ">If expression headers matches "*X-AC-Weight: [[]####] (Whitelisted) -9999*" Goto "Exit Rules"</span></p><p>See Mercury help for more details about regular expressions.</p><p>/Rolf </p>

I have rules in place to check for assorted attachments.  In my Global Rules the first line looks for "Whitelisted" and if it finds it, it is SUPPOSED to skip the rest of the rule processing but for some reason this doesn't seem to work.  I get messages moved to "Admin" that should have been whitelisted.  Any ideas?

Mercury Global Rules

If expression headers matches "*X-AC-Weight: [####] (Whitelisted) -9999*" Goto "Exit Rules"

If expression both matches "*name=*.zip*" Move "admin"

xxx other rules to check for other things!

At the bottom:

Label "Exit Rules"

Always Exit ""



<P>I have rules in place to check for assorted attachments.  In my Global Rules the first line looks for "Whitelisted" and if it finds it, it is SUPPOSED to skip the rest of the rule processing but for some reason this doesn't seem to work.  I get messages moved to "Admin" that should have been whitelisted.  Any ideas?</P><P>Mercury Global Rules </P><P>If expression headers matches "*X-AC-Weight: [####] (Whitelisted) -9999*" Goto "Exit Rules"</P><P>If expression both matches "*name=*.zip*" Move "admin" </P><P>xxx other rules to check for other things!</P><P>At the bottom:</P><P>Label "Exit Rules" </P>Always Exit "" <P> </P><P> </P>
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft