[freeside-commits] freeside/FS/bin freeside-fetch,1.1.2.1,1.1.2.2
Ivan,,,
ivan at wavetail.420.am
Mon Oct 13 14:58:33 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/bin
In directory wavetail.420.am:/tmp/cvs-serv22772/FS/bin
Modified Files:
Tag: FREESIDE_1_7_BRANCH
freeside-fetch
Log Message:
Change subject for freeside-fetch emailed reports from "subject" to "Freeside report", and add email_report-subject config to change it. RT#4093
Index: freeside-fetch
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/bin/freeside-fetch,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -d -r1.1.2.1 -r1.1.2.2
--- freeside-fetch 21 Mar 2007 01:35:32 -0000 1.1.2.1
+++ freeside-fetch 13 Oct 2008 21:58:30 -0000 1.1.2.2
@@ -40,9 +40,12 @@
my $req = new HTTP::Request GET => $url;
my $res = $ua->request($req);
+ my $conf = new FS::Conf;
+ my $subject = $conf->config('email_report-subject') || 'Freeside report';
+
my %options = ( 'from' => $email_address,
'to' => $email_address,
- 'subject' => 'subject',
+ 'subject' => $subject,
'body' => $res->content,
);
More information about the freeside-commits
mailing list