Bug #9795
closedNotification should never be sent if user has mail enabled
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1202558
Description of problem:
Satellite host summary email triggered when email is disabled in user settings
Version-Release number of selected component (if applicable):
Satellite-6.1.0-RHEL-6-20150311.1
How reproducible:
Always
Steps to Reproduce:
1. UI > User -> My Account -> Mail Preferences -> Uncheck Mail Enabled Puppet error state - Subscribe
2. But subscribe to all 5 different email notifications
- Satellite promote errata - Subscribe
- Satellite sync errata - Subscribe
- Puppet Summary - Daily
- Satellite host advisory - Daily
3. Run #foreman-rake reports:daily
Actual results:
Email notification triggered for Satellite Host Advisory
Expected results:
If Mail Enabled is unchecked, no email should be triggered
Additional info: