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.
For more examples, see Developer's Notes.