--- loncom/interface/lonmsg.pm 2005/05/15 01:11:32 1.142 +++ loncom/interface/lonmsg.pm 2005/05/20 17:00:40 1.143 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines for messaging # -# $Id: lonmsg.pm,v 1.142 2005/05/15 01:11:32 www Exp $ +# $Id: lonmsg.pm,v 1.143 2005/05/20 17:00:40 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -707,6 +707,8 @@ ENDDISHEADER &Apache::loncoursedata::CL_FULLNAME(), &Apache::loncoursedata::CL_SECTION()]); next if ($status ne 'Active'); + next if ($env{'request.course.sec'} && + $section ne $env{'request.course.sec'}); my $key = 'send_to_&&&'.$section.'&&&_'.$student; if (! defined($fullname) || $fullname eq '') { $fullname = $sname; } $r->print('