Changeset 202 for trunk


Ignore:
Timestamp:
11/26/05 23:45:30 (19 years ago)
Author:
Nicholas Riley
Message:

RetroStatus.py: Fixed TO_ADDR typos. Removed extraneous emails from quit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/RetroStatus/RetroStatus.py

    r201 r202  
    2323
    2424FROM_NAME, FROM_ADDR = 'Retrospect backup server', 'retrospect' + '@rileys.us'
    25 TO_ADDR = ['%s@rileys.us' for %s in ['julia', 'gary']]
     25TO_ADDR = ['%s@rileys.us' % user for user in ['julia', 'gary']]
    2626SMTP_SERVER = 'calamity.bos.sabi.net'
    2727
     
    167167             '%s; %s error(s)' % (scripterrormessage, errorcount))
    168168
     169# XXX does this get sent when it's supposed to?
    169170def scriptcheckfailed(scriptname, failuremessage, scheduledate):
    170171    disk = lastUsedDisk()
     
    174175
    175176def 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.")
    180177    stopeventloop()
    181     sys.exit(0)
    182178
    183179def handleEvent(eventName, params):
Note: See TracChangeset for help on using the changeset viewer.