Commit e99d466f authored by Daniel Armbruster's avatar Daniel Armbruster Committed by thomas.forbriger
Browse files

added status file option in mail section

This is a legacy commit from before 2015-05-18.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 5073
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 8f606f27
......@@ -53,7 +53,7 @@
# 15/03/2013 V1.1.3 secure copy option - optional lock of directories; exclude
# .lock and checksumfile.result files from rsync copy
# process
# 18/03/2013 V1.1.4 added day option to mail section
# 18/03/2013 V1.1.4 added day and status options to mail section
#
# =============================================================================
"""
......@@ -182,6 +182,8 @@ class MailConverter(Converter):
self.line += ' -D '+self.sectionDict['daysexclude']
if self.sectionDict['logging']:
self.line += ' -l'
if self.sectionDict['statusfile']:
self.line += ' -S '+self.sectionDict['statusfile']
self.line += ' -H '+self.sectionDict['host']+' -P '+ \
self.sectionDict['port']+' -u '+self.sectionDict['username']+' -p ' \
+ self.sectionDict['password']+' -s '+self.sectionDict['sender']
......@@ -401,6 +403,9 @@ class Processor():
self.mail['daysexclude'] = None
if self.config.has_option('mail', 'days'):
self.mail['daysexclude'] = self.config.get('mail', 'days')
self.mail['statusfile'] = None
if self.config.has_option('mail', 'status'):
self.mail['statusfile'] = self.config.get('mail', 'status')
except NoOptionError as err:
raise Error("{0}".format(err.message), eCodes.CRON_MissingOption)
except ValueError:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment