--- loncom/interface/lonmsg.pm 2005/11/01 15:59:18 1.153 +++ loncom/interface/lonmsg.pm 2005/11/17 21:33:40 1.154 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines for messaging # -# $Id: lonmsg.pm,v 1.153 2005/11/01 15:59:18 www Exp $ +# $Id: lonmsg.pm,v 1.154 2005/11/17 21:33:40 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -115,6 +115,7 @@ use Mail::Send; use Apache::lonlocal; use Apache::loncommunicate; use Apache::lonfeedback; +use Apache::lonrss(); # Querystring component with sorting type my $sqs; @@ -1114,8 +1115,9 @@ sub compout { '' . $crithelp . '

'; - } +&mt('Send copy to permanent email address (if known)').'

'. +'

'; } my %message; my %content; my $defdom=$env{'user.domain'}; @@ -2195,6 +2197,13 @@ sub handler { if ($env{'form.storebasecomment'}) { &storecomment($r); } + if (($env{'form.rsspost'}) && ($env{'request.course.id'})) { + &Apache::lonrss::addentry($env{'course.'.$env{'request.course.id'}.'.num'}, + $env{'course.'.$env{'request.course.id'}.'.domain'}, + 'Course_Announcements', + $env{'form.subject'}, + $env{'form.message'},'/adm/communicate','public'); + } &disall($r,($folder?$folder:$dismode)); } elsif ($env{'form.newfolder'}) { &printheader($r,'','New Folder');