1
# SpamAssassin rules file: language tests
3
# Please don't modify this file as your changes will be overwritten with
4
# the next update. Use @@LOCAL_RULES_DIR@@/local.cf instead.
5
# See 'perldoc Mail::SpamAssassin::Conf' for details.
7
# Note: body tests are run with long lines, so be sure to limit the
8
# size of searches; use /.{0,30}/ instead of /.*/ to avoid huge
11
# Note: If you are adding a rule which looks for a phrase in the body
12
# (as most of them do), please add it to rules/20_phrases.cf instead.
15
# Licensed to the Apache Software Foundation (ASF) under one or more
16
# contributor license agreements. See the NOTICE file distributed with
17
# this work for additional information regarding copyright ownership.
18
# The ASF licenses this file to you under the Apache License, Version 2.0
19
# (the "License"); you may not use this file except in compliance with
20
# the License. You may obtain a copy of the License at:
22
# http://www.apache.org/licenses/LICENSE-2.0
24
# Unless required by applicable law or agreed to in writing, software
25
# distributed under the License is distributed on an "AS IS" BASIS,
26
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27
# See the License for the specific language governing permissions and
28
# limitations under the License.
31
###########################################################################
33
ifplugin Mail::SpamAssassin::Plugin::TextCat
35
body UNWANTED_LANGUAGE_BODY eval:check_language()
36
describe UNWANTED_LANGUAGE_BODY Message written in an undesired language
37
tflags UNWANTED_LANGUAGE_BODY userconf
39
body BODY_8BITS eval:check_body_8bits()
40
describe BODY_8BITS Body includes 8 consecutive 8-bit characters
41
tflags BODY_8BITS userconf