[Fix bug 967026][Fix bug 970395] Fix inactivity notification emails.
Merge pull request #728 from johngian/fix-notifications

[Fix bug 967026][Fix bug 970395] Fix inactivity notification emails.