--- loncom/interface/lonmsg.pm 2004/11/17 21:31:37 1.121 +++ loncom/interface/lonmsg.pm 2004/12/11 14:09:46 1.122 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines for messaging # -# $Id: lonmsg.pm,v 1.121 2004/11/17 21:31:37 www Exp $ +# $Id: lonmsg.pm,v 1.122 2004/12/11 14:09:46 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1912,7 +1912,13 @@ sub sendoffmail { foreach (keys %toaddr) { my ($recuname,$recdomain)=split(/\:/,$_); - my $msgtxt=&Apache::lonfeedback::clear_out_html($ENV{'form.message'}); + my $msgtxt; + if ((($ENV{'form.critmsg'}) || ($ENV{'form.sendbck'})) && + (&Apache::lonnet::allowed('srm',$ENV{'request.course.id'}))) { + $msgtxt=&Apache::lonfeedback::clear_out_html($ENV{'form.message'},1); + } else { + $msgtxt=&Apache::lonfeedback::clear_out_html($ENV{'form.message'}); + } if ($toaddr{$_}) { $msgtxt.='
'.$toaddr{$_}; } my $thismsg; if ((($ENV{'form.critmsg'}) || ($ENV{'form.sendbck'})) &&