Fixed missing `quarantined` cast to bool preventing mobile app crashes.
Full changelog
- Fixed missing
quarantinedcast to bool causing mobile app crash - https://github.com/anonaddy/addy-android/issues/61
Release history
Anonymous email forwarding
9 shown
Fixed missing `quarantined` cast to bool preventing mobile app crashes.
quarantined cast to bool causing mobile app crash - https://github.com/anonaddy/addy-android/issues/61In order to quarantine spam emails detected by Rspamd instead of rejecting them we need to make some changes to Rspamd config.
Edit /etc/rspamd/local.d/milter_headers.conf and update the add_should_quarantine_header routine (this should already be present):
add_should_quarantine_header = <<EOD
return function(task, common_meta)
local metric = task:get_metric_score('default')
local score = metric and metric[1] or 0
local reject_threshold = 15.0
local should_quarantine = false
local quarantine_reason = nil
if score >= reject_threshold then
should_quarantine = true
quarantine_reason = quarantine_reason or '5.7.1 Spam message rejected'
end
if should_quarantine then
return nil,
{
['X-AnonAddy-Should-Quarantine'] = 'Yes',
['X-AnonAddy-Quarantine-Reason'] = quarantine_reason or '5.7.1 Spam message rejected'
},
{
['X-AnonAddy-Should-Quarantine'] = 0,
['X-AnonAddy-Quarantine-Reason'] = 0
},
{}
end
return nil,
{},
{
['X-AnonAddy-Should-Quarantine'] = 0,
['X-AnonAddy-Quarantine-Reason'] = 0
},
{}
end
EOD;
}
Then edit (or create) /etc/rspamd/local.d/actions.conf and set a high score threshold for the rejection action. This is to prevent Rspamd rejecting messages outright so that we can instead quarantine them:
reject = 500; # disable hard reject in order to quarantine
Then run sudo service rspamd reload to reflect these changes.
Full Changelog: https://github.com/anonaddy/anonaddy/compare/v1.5.0...v1.5.1
Added pinned aliases feature that appears at the top of your alias list.
- Added {{subject}} placeholder to replace subject [rule](https://app.addy.io/rules) action - Added setting to change spam warning behaviour - Added new alias formats and option to change alias separator
Beta — feedback welcome: [email protected]