[LON-CAPA-cvs] cvs: loncom /interface lonmsg.pm
raeburn
lon-capa-cvs-allow@mail.lon-capa.org
Tue, 08 May 2007 16:50:03 -0000
raeburn Tue May 8 12:50:03 2007 EDT
Modified files:
/loncom/interface lonmsg.pm
Log:
Include a subject line in sent mail when there is just a single recipient.
Index: loncom/interface/lonmsg.pm
diff -u loncom/interface/lonmsg.pm:1.204 loncom/interface/lonmsg.pm:1.205
--- loncom/interface/lonmsg.pm:1.204 Fri May 4 23:14:21 2007
+++ loncom/interface/lonmsg.pm Tue May 8 12:50:02 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines for messaging
#
-# $Id: lonmsg.pm,v 1.204 2007/05/05 03:14:21 raeburn Exp $
+# $Id: lonmsg.pm,v 1.205 2007/05/08 16:50:02 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -706,6 +706,11 @@
my $sentsubj;
if ($numsent > 1) {
$sentsubj = $subj_prefix.' ('.$numsent.' sent) '.$msgsubj;
+ } else {
+ if ($subj_prefix) {
+ $sentsubj = $subj_prefix.' ';
+ }
+ $sentsubj .= $msgsubj;
}
$sentsubj = &HTML::Entities::encode($sentsubj,'<>&"');
my $sentmsgid =