--- loncom/build/Attic/CHECKRPMS.default 2002/11/04 02:53:07 1.10 +++ loncom/build/Attic/CHECKRPMS.default 2002/11/15 18:42:34 1.11 @@ -321,6 +321,7 @@ sub clean_exit if ($mode eq 'cronmail') # If cronmail mode, then mail LON-CAPA sys admin. { close(FOUT); + # Read in configuration to get e-mail addresses. my $perlvarref = read_conf('loncapa.conf'); my %perlvar = %{$perlvarref}; @@ -330,8 +331,20 @@ sub clean_exit # Set metadata for the e-mail. my $emailto = "$perlvar{'lonAdmEMail'},$perlvar{'lonSysEMail'}"; -# my $emailto = "sharrison\@users.sourceforge.net"; - my $subj="LON: $perlvar{'lonHostID'}, RPMS to upgrade"; + + my $subj=$perlvar{'lonHostID'}.', RPMS to upgrade'; + + # Make the e-mail's subject header to describe whether up-to-date. + if ($reallygoodoutput) + { + $subj = 'happy_lon: '.$subj; # Machine is up-to-date. + } + else + { + $subj = 'ALERT_lon: '.$subj; # There are out-of-date RPMs. + } + + # Send the e-mail. system( 'metasend -b -t '.$emailto.' -s '. "'$subj' -f /tmp/CHECKRPMS.$$ -m text/plain");