improved debugging of email
added site id to the logging message
bugfixes
added filtering of posts by user groups in the send_email_alerts command
a bug fix