--- loncom/interface/lonmsg.pm 2002/04/11 20:46:21 1.30 +++ loncom/interface/lonmsg.pm 2002/04/23 21:06:07 1.31 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines for messaging # -# $Id: lonmsg.pm,v 1.30 2002/04/11 20:46:21 matthew Exp $ +# $Id: lonmsg.pm,v 1.31 2002/04/23 21:06:07 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -449,18 +449,21 @@ sub compout { } my $defdom=$ENV{'user.domain'}; $r->print( - '
'. - ''); + ''."\n". + ''."\n". + '
'); unless (($broadcast eq 'group') || ($broadcast eq 'upload')) { + my $domform = &Apache::loncommon::select_dom_form($defdom,'recdomain'); + $r->print(<<"ENDREC");
- + ENDREC } - unless ($broadcast eq 'upload') { + if ($broadcast ne 'upload') { $r->print(<<"ENDCOMP");
Username:
Domain:
$domform
Additional Recipients
username\@domain,username\@domain, ...
@@ -472,23 +475,29 @@ ENDREC $dispcrit ENDCOMP - } - if ($broadcast eq 'upload') { + } else { # $broadcast is 'upload' $r->print(<

Generate messages from a file

+

Subject: +

+

General message text
+

+

+The file format for the uploaded portion of the message is:

 username1\@domain1: text
 username2\@domain2: text
-username1\@domain1: text
+username3\@domain1: text
 
+

+

The messages will be assembled from all lines with the respective -username\@domain, and appended to the general message text.

+username\@domain, and appended to the general message text.

+

-General message text:

-

$dispcrit ENDUPLOAD