--- loncom/interface/lonmsg.pm 2002/05/07 15:24:34 1.32 +++ loncom/interface/lonmsg.pm 2002/07/22 14:23:29 1.35 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines for messaging # -# $Id: lonmsg.pm,v 1.32 2002/05/07 15:24:34 matthew Exp $ +# $Id: lonmsg.pm,v 1.35 2002/07/22 14:23:29 bowersj2 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -49,6 +49,7 @@ use Apache::lonnet(); use vars qw($msgcount); use HTML::TokeParser; use Apache::Constants qw(:common); +use Apache::loncommon; # ===================================================================== Package @@ -314,7 +315,8 @@ sub discrit { $content{'message'}=~s/\n/\/g; $result.='
From: '.$content{'sendername'}.'@'. $content{'senderdomain'}.' ('.$content{'time'}. - ')
'.$content{'message'}.'
'. + ')
Subject: '.$content{'subject'}. + '
'.$content{'message'}.'
'. ''. ''; @@ -342,10 +344,12 @@ sub comprep { my $subject='Re: '.$content{'subject'}; my $dispcrit=''; if (&Apache::lonnet::allowed('srm',$ENV{'request.course.id'})) { + my $crithelp = Apache::loncommon::help_open_topic("Course_Critical_Message"); $dispcrit= - ' Send as critical message
'. - ' Send as critical message'. - ' and return receipt

'; + ' Send as critical message ' . $crithelp . + '
'. + ' Send as critical message ' . + ' and return receipt' . $crithelp . '

'; } $r->print(<<"ENDREPLY");

@@ -396,7 +400,7 @@ ENDDISHEADER $ENV{'user.home'}))) { my ($sendtime,$shortsubj,$fromname,$fromdomain,$status)= &Apache::lonmsg::unpackmsgid($_); - unless ($status eq 'deleted') { + unless (($status eq 'deleted') || ($sendtime=~/error/)) { if ($status eq 'new') { $r->print(''); } elsif ($status eq 'read') { @@ -431,10 +435,12 @@ sub compout { my $dismsg=''; my $func='Send New'; if (&Apache::lonnet::allowed('srm',$ENV{'request.course.id'})) { + my $crithelp = Apache::loncommon::help_open_topic("Course_Critical_Message"); $dispcrit= - ' Send as critical message
'. - ' Send as critical message'. - ' and return receipt

'; + ' Send as critical message ' . $crithelp . + '
'. + ' Send as critical message ' . + ' and return receipt' . $crithelp . '

'; } if ($forwarding) { $dispcrit.='