Commits

Zhang Huangbin committed 7e28d1f

Set prefix text of spam subject to [SPAM] instead of default '***SPAM***'.

Comments (0)

Files changed (1)

iRedMail/functions/amavisd.sh

     perl -pi -e 's#(.*defang_banned = )1(;.*)#${1}0${2}#' ${AMAVISD_CONF}
 
     # Reset $sa_spam_subject_tag, default is '***SPAM***'.
-    #perl -pi -e 's#(.*sa_spam_subject_tag.*=)(.*SPAM.*)#${1} "[SPAM] ";#' ${AMAVISD_CONF}
+    perl -pi -e 's#(.*sa_spam_subject_tag.*=)(.*SPAM.*)#${1} "[SPAM] ";#' ${AMAVISD_CONF}
 
     # TODO fixed on RHEL & Debian/Ubuntu.
     # Allow clients on my internal network to bypass scanning.