My antispam system on my server is half working. Time to get it working completely. This basically moves new email to the .Junk folder if it's junk.

Morgan Bazalgette d7d64a811e Detect files when they are moved and only when moved into cur 10 months ago
.gitignore Whoops, forgot the binary in the gitignore 1 year ago
LICENSE Initial commit 1 year ago
README.md Initial commit 1 year ago
find_mails.go Initial commit 1 year ago
flags.go Detect files when they are moved and only when moved into cur 10 months ago
main.go Initial commit 1 year ago
process.go Detect files when they are moved and only when moved into cur 10 months ago
spam_mover.go Initial commit 1 year ago
watcher.go Detect files when they are moved and only when moved into cur 10 months ago

README.md

dustman

dustman is a program I wrote to make my antispam filter work.

Basically, on my server I have the usual email stack Postfix + dovecot. And well, about a month ago I tried to set up spamassassin to move the spam email I received to the Junk folder, and well, it did not work. I could receive emails, but I couldn't send them. Eventually, I gave up, and what changed was that spamassassin changed the title, and with some shift+click selection on Thunderbird every so often I managed to get the Junk in the Junk folder, manually. But it was time to automate this. And since I'd rather die before touching master.cf again, I made this program which moves spam email automatically to the Junk folder.

./dustman -h
Usage of ./dustman:
  -m string
        The mail directory, where all the email is stored. (default "/mail")
  -p    Whether to reprocess all mail files in the inbox of each user.
  -r    Whether to process already read mail files.