summarylogtreecommitdiffstats
path: root/usermin.install
blob: 3d5a5ca3eae6e627374987e105dd0647133f8069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
post_upgrade() {
  if (( $(vercmp $2 1.861-1) <= 0)); then
    sed -i -e 's/white/welcome/g' -e 's/black/block/g' etc/usermin/spam/* || true
cat << _EOF

>>> Usermin's SpamAssassin (spam) module has been patched for SpamAssassin v4+.
>>> Replaced white/black with welcome/block in /etc/usermin/spam/*
>>> Please verify the same and rename any files if necessary.
>>> Please manually check and update ~/.spamassassin/ for each user.

>>> Also do not forget to activate version compatibility:
>>>   enable_compat welcomelist_blocklist

>>> For details, see:
>>>   https://cwiki.apache.org/confluence/display/spamassassin/WelcomelistBlocklist

_EOF
  fi
}