# SpamAssassin rules file: kam sandbox # # Please don't modify this file as your changes will be overwritten with # the next update. Use @@LOCAL_RULES_DIR@@/local.cf instead. # See 'perldoc Mail::SpamAssassin::Conf' for details. # # <@LICENSE> # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to you under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at: # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # ########################################################################### #See bug 7192 for MILLION_USD, NA_DOLLARS & US_DOLLARS where these rules are being moved to sandbox for ruleqa testing and auto promotion. body MILLION_USD /Million\b.{0,40}\b(?:United States? Dollars?|USD)/i describe MILLION_USD Talks about millions of dollars #OLD SCORE - SETTING A CEILING OF 2 - score MILLION_USD 3.799 2.477 3.221 3.247 score MILLION_USD 2 body NA_DOLLARS /\b(?:\d{1,3})?Million\b.{0,40}\b(?:Canadian Dollar?s?|US\$|U\.? ?S\.? Dollar)/i describe NA_DOLLARS Talks about a million North American dollars #OLD SCORE - SETTING A CEILING OF 1.5 score NA_DOLLARS 3.599 score NA_DOLLARS 1.5 body US_DOLLARS_3 /(?:\$|usd).?\d{1,3}[,.]\d{3}[,.]\d{3}(?:[,.]\d\d)?/i describe US_DOLLARS_3 Mentions millions of $ ($NN,NNN,NNN.NN) #OLD SCORE - SETTING A CEILING OF 2 - score US_DOLLARS_3 2.599 2.523 1.780 1.754 score US_DOLLARS_3 2.0 #EOF