svnno****@sourc*****
svnno****@sourc*****
2009年 4月 6日 (月) 21:21:43 JST
Revision: 1112 http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=1112 Author: tach Date: 2009-04-06 21:21:43 +0900 (Mon, 06 Apr 2009) Log Message: ----------- * Add comment to messaging mail "From:" line using constant "mailfrom_comment" or "sitename" Modified Paths: -------------- slashjp/trunk/Slash/Utility/System/System.pm slashjp/trunk/debian/changelog -------------- next part -------------- Modified: slashjp/trunk/Slash/Utility/System/System.pm =================================================================== --- slashjp/trunk/Slash/Utility/System/System.pm 2009-04-06 09:03:25 UTC (rev 1111) +++ slashjp/trunk/Slash/Utility/System/System.pm 2009-04-06 12:21:43 UTC (rev 1112) @@ -145,9 +145,11 @@ $sender =~ s/###ADDR###/$bounce_addr/; } + my $mailfrom = ($constants->{mailfrom_comment} || $constants->{sitename}) . " <$constants->{mailfrom}>"; + my %data = ( Sender => $sender, - From => $constants->{mailfrom}, + From => $mailfrom, Smtp => $constants->{smtp_server}, Subject => $subject, Message => $content, @@ -223,8 +225,10 @@ $content = encode( $b_code, $content, Encode::FB_PERLQQ ); $subject = encode( $h_code, $subject, Encode::FB_PERLQQ ); + my $mailfrom = ($constants->{mailfrom_comment} || $constants->{sitename}) . " <$constants->{mailfrom}>"; + my $bulk = Slash::Custom::Bulkmail->new( - From => $constants->{mailfrom}, + From => $mailfrom, Smtp => $constants->{smtp_server}, Subject => $subject, Message => $content, Modified: slashjp/trunk/debian/changelog =================================================================== --- slashjp/trunk/debian/changelog 2009-04-06 09:03:25 UTC (rev 1111) +++ slashjp/trunk/debian/changelog 2009-04-06 12:21:43 UTC (rev 1112) @@ -29,8 +29,10 @@ * Enable to select adding "rel=nofollow" to anchor or not using regex by constants "nofollow_exclude_regex" * Add "rel=nofollow" to authors journals and friends journals page + * Add comment to messaging mail "From:" line using constant + "mailfrom_comment" or "sitename" - -- Taku YASUI <tach****@osdn*****> Mon, 6 Apr 2009 09:02:43 +0000 + -- Taku YASUI <tach****@osdn*****> Mon, 6 Apr 2009 12:20:47 +0000 slash (2.5.0.233-7) unstable; urgency=low