X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fschedule%2Fgenerate_reminders.pl;h=3e1351a2eb4b811d7b96fecc0e921154a5502e9c;hb=469eefb1b6b0fb86a8b67a4ee2e8b652afb13ad4;hp=aed6b9d498f69c0504992171cb0676c7dcf653f9;hpb=7b39f7e279005c8466ef508220a532ce2aa4abf8;p=feisty_meow.git diff --git a/scripts/schedule/generate_reminders.pl b/scripts/schedule/generate_reminders.pl index aed6b9d4..3e1351a2 100644 --- a/scripts/schedule/generate_reminders.pl +++ b/scripts/schedule/generate_reminders.pl @@ -21,10 +21,12 @@ # # Apr 24 Saint Shanty's Day # Jul 8 Normality Day +# Oct 24 1985 Saint Splivven's Day # # Month names must currently be three letters and must be capitalized. -# The day must be a number, followed by a space. Anything after that -# space is considered the description of the event. +# The day must be a number, followed by a space. An optional 4 digit +# year can be included. Anything after that is considered to be the +# description of the event. use Env qw(CLOUD_BASE TMP); @@ -34,10 +36,10 @@ use Env qw(CLOUD_BASE TMP); local($TEMPO_FILE) = `mktemp "$TMP/zz_reminder.XXXXXX"`; chop($TEMPO_FILE); -local($USERNAME) = "$REPLYTO"; -if (! $USERNAME) { $USERNAME="fred" } +local($USER_NAME) = "$REPLYTO"; +if (! $USER_NAME) { $USER_NAME="fred" } -#print "TEMPO is $TEMPO_FILE ; USER is $USERNAME ; \n"; +#print "TEMPO is $TEMPO_FILE ; USER is $USER_NAME ; \n"; local($CAL_FILE); if (! $CAL_FILE) { @@ -133,8 +135,8 @@ while () { # send mail here if there's anything to say. if (! -z $TEMPO_FILE) { # there are some alerts in there. -#print "will run: system(\"mail -s \"FredMinder: \$(head -1 $TEMPO_FILE)\" $USERNAME <$TEMPO_FILE\");\n"; - system("mail -s \"FredMinder: \$(head -1 $TEMPO_FILE)\" $USERNAME <$TEMPO_FILE"); +#print "will run: system(\"mail -s \"FredMinder: \$(head -1 $TEMPO_FILE)\" $USER_NAME <$TEMPO_FILE\");\n"; + system("mail -s \"FredMinder: \$(head -1 $TEMPO_FILE)\" $USER_NAME <$TEMPO_FILE"); } unlink $TEMPO_FILE;