Archiving Mail Files

[posted 2000/04/28]

A week or two ago, we were actually losing user mail files on occasion due to our troubles.  That is now mostly a thing of the past, but we still get an occasional report of a lost mail file.  This could easily be due to user error, not to our recent mail server troubles, but you never know. In response, we have set up the following new alarm for archiving mail files:

#if moscow

ArchiveMailFileWarning

        init
                status active
                level warning
                task "Auto-backup mail files for certain problematic users"
                input file "=objdir/ArchiveMailFile.obj"
                dat $user 1

        begin
                if #weekday() == 2      // monday
                        output mail "REVIEW THE ARCHIVEMAILFILE OBJECTS LIST"
                fi

        rule
                =archive_mail_file($user, #true())

#endif

Note the use of the =archive_mail_file() macro created earlier for ProcNumChk.

=objdir/ArchiveMailFile.obj is a file defined in objects.cfg:

#if moscow

ArchiveMailFile
        zeppo

#endif  // moscow

Currently we have just a single user registered.  Hopefully this list will not grow over time.  Ideally, we can fix all of our mail problems and retire this list, also the ArchiveMailFile script.  (Actually, it would be better to leave them in the PIKT configuration files, but commented out, for future use.)

Note how we have set up a reminder, sent every Monday, to review the list and the whole mail file backup situation.

Open Hand For more examples, see Developer's Notes.

 
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2008-02-27.   This site is PIKT® powered.
PIKT® is a registered trademark of the University of Chicago.   Copyright © 1998-2008 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
mail aliases
config file