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.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Morgan Bazalgette d7d64a811e Detect files when they are moved and only when moved into cur 2 years ago
.gitignore Whoops, forgot the binary in the gitignore 3 years ago
LICENSE Initial commit 3 years ago
README.md Initial commit 3 years ago
find_mails.go Initial commit 3 years ago
flags.go Detect files when they are moved and only when moved into cur 2 years ago
main.go Initial commit 3 years ago
process.go Detect files when they are moved and only when moved into cur 2 years ago
spam_mover.go Initial commit 3 years ago
watcher.go Detect files when they are moved and only when moved into cur 2 years 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.