From tach ¡÷ users.sourceforge.jp Fri Dec 2 00:06:07 2005 From: tach ¡÷ users.sourceforge.jp (Taku YASUI) Date: Fri, 2 Dec 2005 00:06:07 +0900 Subject: [Slashdotjp-dev 315] CVS update: slashjp/Slash/Utility/System Message-ID: <20051201150607.233DE2AC0D0@users.sourceforge.jp> Index: slashjp/Slash/Utility/System/System.pm diff -u slashjp/Slash/Utility/System/System.pm:1.6 slashjp/Slash/Utility/System/System.pm:1.7 --- slashjp/Slash/Utility/System/System.pm:1.6 Sat Jan 8 17:33:54 2005 +++ slashjp/Slash/Utility/System/System.pm Fri Dec 2 00:06:06 2005 @@ -1,7 +1,7 @@ # This code is a part of Slash, and is released under the GPL. # Copyright 1997-2004 by Open Source Development Network. See README # and COPYING for more information, or see http://slashcode.com/. -# $Id: System.pm,v 1.6 2005/01/08 08:33:54 oliver Exp $ +# $Id: System.pm,v 1.7 2005/12/01 15:06:06 tach Exp $ package Slash::Utility::System; @@ -43,7 +43,7 @@ use base 'Exporter'; use vars qw($VERSION @EXPORT @EXPORT_OK); -($VERSION) = ' $Revision: 1.6 $ ' =~ /\$Revision:\s+([^\s]+)/; +($VERSION) = ' $Revision: 1.7 $ ' =~ /\$Revision:\s+([^\s]+)/; @EXPORT = qw( bulkEmail doEmail @@ -132,7 +132,18 @@ $content = encode( $b_code, $content, Encode::FB_PERLQQ ); $subject = encode( $h_code, $subject, Encode::FB_PERLQQ ); + # set enverope from + if ($constants->{bounce_address}) { + $sender = $constants->{bounce_address}; + my $bounce_addr = $addr; + $bounce_addr =~ s/@/=/; + $sender =~ s/###ADDR###/$bounce_addr/; + } else { + $sender = $constants->{mailfrom}; + } + my %data = ( + Sender => $sender, From => $constants->{mailfrom}, Smtp => $constants->{smtp_server}, Subject => $subject, @@ -558,4 +569,4 @@ =head1 VERSION -$Id: System.pm,v 1.6 2005/01/08 08:33:54 oliver Exp $ +$Id: System.pm,v 1.7 2005/12/01 15:06:06 tach Exp $ From tach ¡÷ users.sourceforge.jp Fri Dec 2 02:24:51 2005 From: tach ¡÷ users.sourceforge.jp (Taku YASUI) Date: Fri, 2 Dec 2005 02:24:51 +0900 Subject: [Slashdotjp-dev 316] CVS update: slashjp/Slash/Utility/System Message-ID: <20051201172451.4ED532AC02C@users.sourceforge.jp> Index: slashjp/Slash/Utility/System/System.pm diff -u slashjp/Slash/Utility/System/System.pm:1.7 slashjp/Slash/Utility/System/System.pm:1.8 --- slashjp/Slash/Utility/System/System.pm:1.7 Fri Dec 2 00:06:06 2005 +++ slashjp/Slash/Utility/System/System.pm Fri Dec 2 02:24:51 2005 @@ -1,7 +1,7 @@ # This code is a part of Slash, and is released under the GPL. # Copyright 1997-2004 by Open Source Development Network. See README # and COPYING for more information, or see http://slashcode.com/. -# $Id: System.pm,v 1.7 2005/12/01 15:06:06 tach Exp $ +# $Id: System.pm,v 1.8 2005/12/01 17:24:51 tach Exp $ package Slash::Utility::System; @@ -43,7 +43,7 @@ use base 'Exporter'; use vars qw($VERSION @EXPORT @EXPORT_OK); -($VERSION) = ' $Revision: 1.7 $ ' =~ /\$Revision:\s+([^\s]+)/; +($VERSION) = ' $Revision: 1.8 $ ' =~ /\$Revision:\s+([^\s]+)/; @EXPORT = qw( bulkEmail doEmail @@ -133,13 +133,12 @@ $subject = encode( $h_code, $subject, Encode::FB_PERLQQ ); # set enverope from + my $sender = $constants->{mailfrom}; if ($constants->{bounce_address}) { $sender = $constants->{bounce_address}; my $bounce_addr = $addr; $bounce_addr =~ s/@/=/; $sender =~ s/###ADDR###/$bounce_addr/; - } else { - $sender = $constants->{mailfrom}; } my %data = ( @@ -569,4 +568,4 @@ =head1 VERSION -$Id: System.pm,v 1.7 2005/12/01 15:06:06 tach Exp $ +$Id: System.pm,v 1.8 2005/12/01 17:24:51 tach Exp $