--- loncom/interface/lonmsg.pm 2006/12/24 22:13:19 1.191 +++ loncom/interface/lonmsg.pm 2006/12/28 18:47:15 1.194 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines for messaging # -# $Id: lonmsg.pm,v 1.191 2006/12/24 22:13:19 raeburn Exp $ +# $Id: lonmsg.pm,v 1.194 2006/12/28 18:47:15 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -191,6 +191,7 @@ sub unpackagemsg { sub buildmsgid { my ($now,$subject,$uname,$udom,$msgcount,$course_context,$symb,$error,$pid) = @_; $subject=&escape($subject); + $symb = &escape($symb); return(&escape($now.':'.$subject.':'.$uname.':'. $udom.':'.$msgcount.':'.$course_context.':'.$pid.':'.$symb.':'.$error)); } @@ -202,6 +203,7 @@ sub unpackmsgid { $processid,$symb,$error) = split(/\:/,&unescape($msgid)); $shortsubj = &unescape($shortsubj); $shortsubj = &HTML::Entities::decode($shortsubj); + $symb = &unescape($symb); if (!defined($processid)) { $fromcid = ''; } my %status=(); unless ($skipstatus) { @@ -244,7 +246,7 @@ sub sendemail { # ==================================================== Send notification emails sub sendnotification { - my ($to,$touname,$toudom,$subj,$crit,$text)=@_; + my ($to,$touname,$toudom,$subj,$crit,$text,$msgid)=@_; my $sender=$env{'environment.firstname'}.' '.$env{'environment.lastname'}; unless ($sender=~/\w/) { $sender=$env{'user.name'}.'@'.$env{'user.domain'}; @@ -256,21 +258,36 @@ sub sendnotification { my $url='http://'. $Apache::lonnet::hostname{&Apache::lonnet::homeserver($touname,$toudom)}. '/adm/email?username='.$touname.'&domain='.$toudom; - my $body=(<