--- loncom/interface/lonmsg.pm 2005/12/09 20:54:26 1.162 +++ loncom/interface/lonmsg.pm 2005/12/21 22:58:07 1.165 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines for messaging # -# $Id: lonmsg.pm,v 1.162 2005/12/09 20:54:26 raeburn Exp $ +# $Id: lonmsg.pm,v 1.165 2005/12/21 22:58:07 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -105,7 +105,7 @@ users in their domain. The XML packagin similar. The differences are the use of $uname and $udom in stored internal messages, compared with $email in stored -Domain Coordinator e-mail for teh storage of information about +Domain Coordinator e-mail for the storage of information about recipients of the message/e-mail. =head1 FUNCTIONS @@ -266,14 +266,17 @@ sub buildmsgid { } sub unpackmsgid { - my ($msgid,$folder)=@_; + my ($msgid,$folder,$skipstatus)=@_; $msgid=&Apache::lonnet::unescape($msgid); - my $suffix=&foldersuffix($folder); my ($sendtime,$shortsubj,$fromname,$fromdomain,$count,$fromcid)=split(/\:/, &Apache::lonnet::unescape($msgid)); - my %status=&Apache::lonnet::get('email_status'.$suffix,[$msgid]); - if ($status{$msgid}=~/^error\:/) { $status{$msgid}=''; } - unless ($status{$msgid}) { $status{$msgid}='new'; } + my %status=(); + unless ($skipstatus) { + my $suffix=&foldersuffix($folder); + %status=&Apache::lonnet::get('email_status'.$suffix,[$msgid]); + if ($status{$msgid}=~/^error\:/) { $status{$msgid}=''; } + unless ($status{$msgid}) { $status{$msgid}='new'; } + } return ($sendtime,$shortsubj,$fromname,$fromdomain,$status{$msgid},$fromcid); }