Changeset 202
- Timestamp:
- 11/26/05 23:45:30 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/RetroStatus/RetroStatus.py
r201 r202 23 23 24 24 FROM_NAME, FROM_ADDR = 'Retrospect backup server', 'retrospect' + '@rileys.us' 25 TO_ADDR = ['%s@rileys.us' for %sin ['julia', 'gary']]25 TO_ADDR = ['%s@rileys.us' % user for user in ['julia', 'gary']] 26 26 SMTP_SERVER = 'calamity.bos.sabi.net' 27 27 … … 167 167 '%s; %s error(s)' % (scripterrormessage, errorcount)) 168 168 169 # XXX does this get sent when it's supposed to? 169 170 def scriptcheckfailed(scriptname, failuremessage, scheduledate): 170 171 disk = lastUsedDisk() … … 174 175 175 176 def retrospectquit(): 176 disk = lastUsedDisk()177 if not disk or not diskIsMounted(disk):178 sendMail("Please swap backup media",179 "Eject the old disk, if any, and check that the correct disk is inserted.")180 177 stopeventloop() 181 sys.exit(0)182 178 183 179 def handleEvent(eventName, params):
Note:
See TracChangeset
for help on using the changeset viewer.