[Mimedefang] Spamassassin Removal?
Giovanni Bechis
giovanni at paclan.it
Tue Jul 27 09:53:52 EDT 2021
On 7/27/21 3:46 PM, postfix--- via MIMEDefang wrote:
>> you can just set $Features{"SpamAssassin"}=0
>> and no additional code will be loaded.
>
> Set where? In mimedefang.pl or in the mimedefang-filter body? And if in the filter does location matter? If too soon will it get over written by code in mimedefang.pl?
>
> mimedefang.pl:
> sub detect_and_load_perl_modules {
> if (!defined($Features{"AutoDetectPerlModules"}) or
> $Features{"AutoDetectPerlModules"}) {
> if (!defined($Features{"SpamAssassin"})) {
> (eval 'use Mail::SpamAssassin (); $Features{"SpamAssassin"} = 1;')
> or $Features{"SpamAssassin"} = 0;
> }
> $Features{"SpamAssassin"} = 1; #<-- HERE??? Or safer in mimedefang-filter body?
> ...
> ...
> }
> }
>
> Another thing that im not understanding, is in the above sub detect_and_load_perl_modules() it's checking if $Features{"SpamAssassin"} is defined however i am not seeing anywhere in mimedefang.pl where $Features{"SpamAssassin"} gets set/created/defined to begin with. Does this happen in a hidden section of c code? Am i missing it somewhere else?
>
this could be set in mimedefang-filter or in mimedefang-filter.conf,
This feature is not available on MIMEDefang 2.84 but only on (yet not released) 2.85 version.
Giovanni
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.mimedefang.org/pipermail/mimedefang_lists.mimedefang.org/attachments/20210727/7f3653e7/attachment-0001.sig>
More information about the MIMEDefang
mailing list