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.
Find a file
2016-12-11 14:02:59 +01:00
.gitignore Whoops, forgot the binary in the gitignore 2016-10-09 15:18:39 +02:00
find_mails.go Initial commit 2016-10-09 15:15:14 +02:00
flags.go Detect files when they are moved and only when moved into cur 2016-12-11 14:02:59 +01:00
LICENSE Initial commit 2016-10-09 15:15:14 +02:00
main.go Initial commit 2016-10-09 15:15:14 +02:00
process.go Detect files when they are moved and only when moved into cur 2016-12-11 14:02:59 +01:00
README.md Initial commit 2016-10-09 15:15:14 +02:00
spam_mover.go Initial commit 2016-10-09 15:15:14 +02:00
watcher.go Detect files when they are moved and only when moved into cur 2016-12-11 14:02:59 +01:00

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.