Fixed not working mails flag
Merge pull request #246 from dswd/fix-mails-flag-not-working

Fix mails flag not working