Univention Bugzilla – Bug 55685
UCR Type for mail/antispam/requiredhits "int" is wrong, needs to allow real numbers
Last modified: 2023-07-12 13:57:18 CEST
The Type "int" for the spamassassin setting "required_score" is wrong. Spamassissin allows real numbers here. UCS 5.0-3: #ucr info mail/antispam/requiredhits mail/antispam/requiredhits: 5 SpamAssassin operates a point system, [..] Categories: service-mail Default: (not set) Type: int From the documentation of spamassissin: https://spamassassin.apache.org/full/3.1.x/doc/Mail_SpamAssassin_Conf.html required_score n.nn (default: 5) Set the score required before a mail is considered spam. n.nn can be an integer or a real number. [..]
The UCR variable `mail/antispam/requiredhits` was using an integer but the value can be a float or a real number. This is now possible. univention-spamassassin.yaml a99341b3f8ae | Bug #55685: Changed the UCR type of mail/antispam/requiredhits to string univention-spamassassin (11.0.1-3) a99341b3f8ae | Bug #55685: Changed the UCR type of mail/antispam/requiredhits to string
OK: # ucr set mail/antispam/requiredhits=a Setting mail/antispam/requiredhits E: Value 'a' incompatible for 'mail/antispam/requiredhits' OK: # ucr set mail/antispam/requiredhits=5.0 Setting mail/antispam/requiredhits File: /etc/spamassassin/90_univention.cf OK: # ucr set mail/antispam/requiredhits=5..0000000000 Setting mail/antispam/requiredhits E: Value '5..0000000000' incompatible for 'mail/antispam/requiredhits' OK: # ucr set mail/antispam/requiredhits=5.0000000000 Setting mail/antispam/requiredhits File: /etc/spamassassin/90_univention.cf OK: # ucr set mail/antispam/requiredhits=5 Setting mail/antispam/requiredhits File: /etc/spamassassin/90_univention.cf OK: # ucr set mail/antispam/requiredhits=.5 Setting mail/antispam/requiredhits E: Value '.5' incompatible for 'mail/antispam/requiredhits' ~ I think this is also allowed by the configuration but not via UCR. OK for now. # ucr set mail/antispam/requiredhits=5. Setting mail/antispam/requiredhits E: Value '5.' incompatible for 'mail/antispam/requiredhits' Adjusted the advisory wording: bbcaa93ee3 chore(univention-spamassassin): update advisory
<https://errata.software-univention.de/#/?erratum=5.0x733>