[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[4145] branches/1.3



Revision: 4145
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4145&view=rev
Author:   einhverfr
Date:     2011-12-05 08:15:45 +0000 (Mon, 05 Dec 2011)
Log Message:
-----------
Fixed invalid from address on backup by making this configurable on ledgersmb.conf

Modified Paths:
--------------
    branches/1.3/Changelog
    branches/1.3/LedgerSMB/Sysconfig.pm
    branches/1.3/ledgersmb.conf.default
    branches/1.3/scripts/setup.pl

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2011-12-05 07:24:21 UTC (rev 4144)
+++ branches/1.3/Changelog	2011-12-05 08:15:45 UTC (rev 4145)
@@ -17,6 +17,7 @@
 * Fixed timecard template headers not showing company name, etc (Chris T)
 * Fixed part account mappings broken after upgrade from 1.2 (Chris T)
 * Fixed quotation number increasing when saving existing quotation (Chris T)
+* Fixed invalid from address on backup routine (Chris T)
 
 Changelog for LedgerSMB 1.3.7 (Categorized due to length)
 Database

Modified: branches/1.3/LedgerSMB/Sysconfig.pm
===================================================================
--- branches/1.3/LedgerSMB/Sysconfig.pm	2011-12-05 07:24:21 UTC (rev 4144)
+++ branches/1.3/LedgerSMB/Sysconfig.pm	2011-12-05 08:15:45 UTC (rev 4145)
@@ -134,7 +134,7 @@
 
 # mail configuration
 for my $var (qw(sendmail smtphost smtptimeout smtpuser 
-             smtppass smtpauthmethod)) 
+             smtppass smtpauthmethod backup_email_from)) 
 {
     ${$var} = $config{mail}{$var} if $config{mail}{$var};
 }

Modified: branches/1.3/ledgersmb.conf.default
===================================================================
--- branches/1.3/ledgersmb.conf.default	2011-12-05 07:24:21 UTC (rev 4144)
+++ branches/1.3/ledgersmb.conf.default	2011-12-05 08:15:45 UTC (rev 4145)
@@ -66,6 +66,7 @@
 sendmail   = /usr/bin/sendmail -t
 # smtphost = 127.0.0.1
 # smtptimeout = 60
+# backup_email_from = ..hidden..
 
 [printers]
 # Available printers

Modified: branches/1.3/scripts/setup.pl
===================================================================
--- branches/1.3/scripts/setup.pl	2011-12-05 07:24:21 UTC (rev 4144)
+++ branches/1.3/scripts/setup.pl	2011-12-05 08:15:45 UTC (rev 4145)
@@ -199,7 +199,7 @@
     if ($request->{backup_type} eq 'email'){
         my $csettings = $LedgerSMB::Company_Config::settings;
 	my $mail = new LedgerSMB::Mailer(
-		from          => $csettings->{default_email_from},
+		from          => $LedgerSMB::Sysconfig::backup_email_from,
 		to            => $request->{email},
 		subject       => "Email of Backup",
 		message       => 'The Backup is Attached',

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.