]> git.donarmstrong.com Git - spamassassin_config.git/commitdiff
not only try to load the plugin but include the rules only if the
authorHanno 'Rince' Wagner <github@rince.de>
Tue, 4 Apr 2017 08:48:20 +0000 (10:48 +0200)
committerHanno 'Rince' Wagner <github@rince.de>
Tue, 4 Apr 2017 08:48:20 +0000 (10:48 +0200)
plugin works

common/common_spam

index 8749239c5a012877af9e624754c46f54c7ddd6c6..a514093ab063fc459858feecc266767893f51468 100644 (file)
@@ -25,8 +25,9 @@ include auto_response_spam
 
 # this is a set of image-specific spam rules
 tryplugin Mail::SpamAssassin::Plugin::ImageInfo
-include image_spam
-
+if (plugin (Mail::SpamAssassin::Plugin::ImageInfo)
+  include image_spam
+endif
 
 meta DIGEST_MULTIPLE            RAZOR2_CHECK + PYZOR_CHECK > 1
 describe DIGEST_MULTIPLE        Message hits more than one network digest check