# # These rules look for in-line MIME Content-Type headers of various # types, and then look to see if the sender tuple is already known # to the autowhitelist system. If the message contains a binary # attachment and the sender tuple is unknown, a rule fires that tells # us the message is a gift from a stranger. # # These rules require the Mail::SpamAssassin::Plugin::MIMEHeader # plugin to be loaded. This plugin is included with SpamAssassin # but may not be active by default. # # These rules also require the SpamAssassin AutoWhitelist (AWL) # plugin to be loaded. This plugin is active by default. # # Note also that priority checks ensure that the meta rules run # after the autowhitelist checks (which have priority of 1000). # ifplugin Mail::SpamAssassin::Plugin::MIMEHeader mimeheader __L_C_TYPE_APP Content-Type =~ /^application/i mimeheader __L_C_TYPE_IMAGE Content-Type =~ /^image/i mimeheader __L_C_TYPE_AUDIO Content-Type =~ /^audio/i mimeheader __L_C_TYPE_VIDEO Content-Type =~ /^video/i mimeheader __L_C_TYPE_MODEL Content-Type =~ /^model/i meta L_STRANGER_APP (!AWL && __L_C_TYPE_APP) score L_STRANGER_APP 2.0 priority L_STRANGER_APP 1001 meta L_STRANGER_IMAGE (!AWL && __L_C_TYPE_IMAGE) score L_STRANGER_IMAGE 2.0 priority L_STRANGER_IMAGE 1001 meta L_STRANGER_AUDIO (!AWL && __L_C_TYPE_AUDIO) score L_STRANGER_AUDIO 2.0 priority L_STRANGER_AUDIO 1001 meta L_STRANGER_VIDEO (!AWL && __L_C_TYPE_VIDEO) score L_STRANGER_VIDEO 2.0 priority L_STRANGER_VIDEO 1001 meta L_STRANGER_MODEL (!AWL && __L_C_TYPE_MODEL) score L_STRANGER_MODEL 2.0 priority L_STRANGER_MODEL 1001 endif