diff options
Diffstat (limited to 'jobs/JobBase.py')
-rwxr-xr-x | jobs/JobBase.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jobs/JobBase.py b/jobs/JobBase.py index 09a8333..9ea31a4 100755 --- a/jobs/JobBase.py +++ b/jobs/JobBase.py @@ -110,6 +110,10 @@ class JobBase(object): return True def sendEmail(config, subject, body, to=""): + if config.getboolean('email', 'nomail'): + logging.info("Not sending email with subject '" + subject + '" but pretending we did.') + return True + FROM = config.get('email', 'user') PASS = config.get('email', 'pass') if not to: |