From 676181084d88b0ec94d42521162b4571cb0c0552 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 9 Jan 2015 22:55:08 +0000 Subject: Use same handling for cron and non-cron email. This means that e.g. SMTP authentication is used when set up by all emails, not just non-cron ones. Fixes #988. --- bin/send-comments | 1 - 1 file changed, 1 deletion(-) (limited to 'bin/send-comments') diff --git a/bin/send-comments b/bin/send-comments index 03adfb095..2192f674c 100755 --- a/bin/send-comments +++ b/bin/send-comments @@ -21,7 +21,6 @@ use FixMyStreet::App; use Utils; use mySociety::Config; -use mySociety::EmailUtil; use Open311; -- cgit v1.2.3 From 8e6d48d5ee351594fc92f1e680ba4a2219ed57ca Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 15 Jan 2015 15:33:21 +0000 Subject: Remove need for cron-wrapper with existing scripts Call the necessary boilerplate in each script so you can call them directly. Remove boilerplate from files that don't need it. --- bin/send-comments | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin/send-comments') diff --git a/bin/send-comments b/bin/send-comments index 2192f674c..2d6b525b5 100755 --- a/bin/send-comments +++ b/bin/send-comments @@ -13,6 +13,13 @@ use strict; use warnings; require 5.8.0; +BEGIN { + use File::Basename qw(dirname); + use File::Spec; + my $d = dirname(File::Spec->rel2abs($0)); + require "$d/../setenv.pl"; +} + use Digest::MD5; use Encode; use CronFns; -- cgit v1.2.3