- Thread Starter
- #26
Ok, I have moved mail to new server. postfix + rspamd + dovecot.
In case anyone needs, here is procmail filter for moving mail to Spam folder and marking them read:
In case anyone needs, here is procmail filter for moving mail to Spam folder and marking them read:
Code:
:0
* ^X-Spam: YES
{
foldername=$HOME/Maildir/.Spam/
:0c
$foldername/
:0
* LASTFOLDER ?? /\/[^/]+$
{ tail=$MATCH }
TRAP="mv $foldername/new/$tail* $foldername/cur/$tail:2,S"
HOST
}