set SCO_MAIL_ADMIN_VACATION_MSGS(@catalog@) {vacation.cat@mail 1}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_HELPBOOK) {1 vacation}
set SCO_MAIL_ADMIN_VACATION_MSGS(ERR_UNK_ARG) {2 {vacation: unknown argument \"%1$s\"}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_TITLE) {3 {Vacation Notification}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_SET) {4 {Set Vacation Notices}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_NOTICE_ON) {5 On}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_NOTICE_OFF) {6 Off}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_DEFAULT) {7 Default}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_AKA_TITLE) {8 {Other mail addresses for <%1$s>}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_AKA_ADD) {9 Add...}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_AKA_REMOVE) {10 Remove}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_NOTICE_TITLE) {11 {Notices Were Sent To:}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_NOTICE_CLEAR) {12 { Clear }}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_SUBJECT) {13 {Notification Subject}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_MESSAGE) {14 {Notification Message}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_WANT_CLR_TITLE) {15 {Clear Notices?}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_WANT_CLEARED) {16 {Do you wish to clear the Notices Sent list?}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_YES) {17 Yes}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_NO) {18 No}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_AKA_ADD_TITLE) {19 {Add Other Address}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_AKA_ADD_ADDRESS) {20 {Enter another mail address to be recognised as \"%1$s\":}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_AKA_ADD_ADD) {21 Add}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_TRIPNOTE) {22 {\tThis is an automatic reply to email you recently sent\nto %1$s. Additional mail to %1$s will not result in\nfurther replies. This mail indicates that the user is not\nresponding to your message for the following reason:\n\n\tNo pre-recorded message file was left by the user.\nHowever, this feature of the mail system is normally used\nduring vacations and other extended absences.\n\n\tThe Mail System\n}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_TRIPSUBJECT) {23 {Absence (Automatic reply)}}
set SCO_MAIL_ADMIN_VACATION_MSGS(ERR_SUBJECT) {24 {You must enter a Notification Subject}}
set SCO_MAIL_ADMIN_VACATION_MSGS(ERR_MESSAGE) {25 {You must enter a Notification Message}}
set SCO_MAIL_ADMIN_VACATION_MSGS(ERR_SPACE) {26 {An address may not contain a space}}
set SCO_MAIL_ADMIN_VACATION_MSGS(ERR_CANT_READ) {27 {Can't read file \"%1$s\".}}
set SCO_MAIL_ADMIN_VACATION_MSGS(ERR_CANT_WRITE) {28 {Can't write file \"%1$s\".}}
set SCO_MAIL_ADMIN_VACATION_MSGS(ERR_CANT_REMOVE) {29 {Can't remove file \"%1$s\".}}
set SCO_MAIL_ADMIN_VACATION_MSGS(ERR_CANT_LOCK) {30 {Vacation preferences are already being edited.}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_HELP_AKA_ADD) {31 {Press to add mail address(es)}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_HELP_AKA_REMOVE) {32 {Press to remove the selected mail address}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_HELP_AKA_LIST) {33 {The list of addresses which will be considered \"you\"}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_HELP_NOTICE_CLEAR) {34 {Press this to erase the names from this list}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_HELP_NOTICE_LIST) {35 {The list of addresses which were sent a notice}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_HELP_MESSAGE) {36 {A message to send with each notification}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_HELP_MESSAGE_DEFAULT) {37 {Press this to use the default notification message}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_HELP_SUBJECT) {38 {The subject for each notification}}
set SCO_MAIL_ADMIN_VACATION_MSGS(MSG_HELP_SUBJECT_DEFAULT) {39 {Press this to use the default notification subject}}
set HOME $env(HOME)
set rcvtrip_is_on 0
set new_alteregos 0
set asked 0
set want_cleared 0
set rcvtripPattern {^\*[ ]+-[ ]+(pipe|\|)[ ]+R[ ]+(/usr/bin/|)vacation[ ]*$}
umask 077
proc _quit { cbs } {
VtClose
exit
}
proc quit { cbs } {
global outerMainForm
VtDestroyDialog $outerMainForm
_quit $cbs
}
if {[catch {open $HOME/.maildelivery "a+"} fh] == 0} {
seek $fh 0 start
set scxt [scancontext create]
#{^\*[ ]+-[ ]+(pipe|\|)[ ]+R[ ]+vacation[ ]*$} {}
scanmatch $scxt\
"$rcvtripPattern" {
global rcvtrip_is_on
set rcvtrip_is_on 1
}
scanfile $scxt $fh
#close $fh ;# We want to use this to lock the file...
scancontext delete $scxt
}
if {![flock -write -nowait $fh]} {
set app [VtOpen vacation [IntlLocalizeMsg SCO_MAIL_ADMIN_VACATION_MSG_HELPBOOK]]