Add option to send notifications for spam messages

Cherrypicked the commit from #112. I really need that in the stable branch. Would be nice if someone could merge that in, otherwhise I would need to use my fork for now. But I don't really want that.