]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Add dependency on mime types
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 5 Nov 2018 14:32:51 +0000 (14:32 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 5 Nov 2018 14:32:51 +0000 (14:32 +0000)
src/plugins/fuzzy_check.c

index b12afb7b94296d2b9152d25152c3bec9d446bc32..6f9be972018d753c203afcd9e3e9381451bae4ac 100644 (file)
@@ -1136,6 +1136,10 @@ fuzzy_check_module_config (struct rspamd_config *cfg)
                                }
                        }
                }
+
+               /* We want that to check bad mime attachments */
+               rspamd_symcache_add_delayed_dependency (cfg->cache,
+                               "FUZZY_CALLBACK", "MIME_TYPES_CALLBACK");
        }
 
        if (fuzzy_module_ctx->fuzzy_rules == NULL) {