[LON-CAPA-cvs] cvs: loncom /interface lonnavmaps.pm

raeburn lon-capa-cvs@mail.lon-capa.org
Fri, 05 Jan 2007 06:43:37 -0000


raeburn		Fri Jan  5 01:43:37 2007 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  Need to decrypt the symb contained in the message ID.
  
  If the message ID contains a courseID and it's different to the current courseID
  then skip the symb.
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.395 loncom/interface/lonnavmaps.pm:1.396
--- loncom/interface/lonnavmaps.pm:1.395	Sun Dec 24 17:13:19 2006
+++ loncom/interface/lonnavmaps.pm	Fri Jan  5 01:43:34 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.395 2006/12/24 22:13:19 raeburn Exp $
+# $Id: lonnavmaps.pm,v 1.396 2007/01/05 06:43:34 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1916,6 +1916,10 @@
 	if ((!$emailstatus{$msgid}) || ($emailstatus{$msgid} eq 'new')) {
             my ($sendtime,$shortsubj,$fromname,$fromdomain,$status,$fromcid,
                 $symb,$error) = &Apache::lonmsg::unpackmsgid($msgid);
+            &Apache::lonenc::check_decrypt(\$symb); 
+            if (($fromcid ne '') && ($fromcid ne $cid)) {
+                next;
+            }
             if (defined($symb)) {
                 if (defined($error) && $error == 1) {
                     $error{$symb}.=','.$msgid;