summaryrefslogtreecommitdiff
path: root/FS/bin
diff options
context:
space:
mode:
authorivan <ivan>2008-10-13 22:00:50 +0000
committerivan <ivan>2008-10-13 22:00:50 +0000
commit0731f30e839cb53da5d5bebe68518f136058e919 (patch)
treec2c5e52b1fbb5dc98ceed4cef054810cecb15f7b /FS/bin
parent9c42579467b332e5b188c75e5acb109eb33b7297 (diff)
Change subject for freeside-fetch emailed reports from "subject" to "Freeside report", and add email_report-subject config to change it. RT#4093
Diffstat (limited to 'FS/bin')
-rwxr-xr-xFS/bin/freeside-fetch5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/bin/freeside-fetch b/FS/bin/freeside-fetch
index 89a4f29af..3fe1a0039 100755
--- a/FS/bin/freeside-fetch
+++ b/FS/bin/freeside-fetch
@@ -40,9 +40,12 @@ foreach my $employee (@employees) {
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,
);