SA Bugzilla – Bug 7709
Amavis X-Spam-Status header incompatible with mass-check --reuse
Last modified: 2019-04-27 20:25:43 UTC
Created attachment 5651 [details] Diff for mass-check As per discussion on ruleqa mailing list if mass-check --reuse is used on emails that have X-Spam-Status headers inserted the parser does not pick up the existence of any valid rules to reuse. This ends in rules not being recognised by the weekly masscheck when emails have the amavis header. This is due to the slight difference in format between amavis X-Spam-Status and native Spamassassin ones. The attached is proposed adjustment to mass-check, if considered fine I can commit. Paul
Perhaps document the differences with a comment (SA vs Amavis). It's usually good practise to mention bug number too. Also the replace seems a bit complex. Perhaps simply my @previous = split(/,/, $1); # Bug 7709 s/[\[\]]//, s/=.*// foreach (@previous); $ma->...
Sending masses/mass-check Sending rulesrc/sandbox/pds/20_freshfmb.cf Transmitting file data ..done Committing transaction... Committed revision 1858296.