From 1206bdf9458e597e4c8b4603fabc8e70edde7e7c Mon Sep 17 00:00:00 2001 From: SJ Date: Sat, 21 Jun 2014 21:30:51 +0200 Subject: [PATCH] minor fixes --- init.d/rc.piler.in | 5 +++-- webui/controller/message/bulkrestore.php | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/init.d/rc.piler.in b/init.d/rc.piler.in index cc603386..6b94cdc7 100644 --- a/init.d/rc.piler.in +++ b/init.d/rc.piler.in @@ -14,12 +14,13 @@ NAME=piler -PID_FILE=`SBINDIR/pilerconf -q pidfile | cut -f2 -d=` +OPTIONS="" +PID_FILE=`SBINDIR/pilerconf $OPTIONS -q pidfile | cut -f2 -d=` PID_NUMBER=`test -f ${PID_FILE} && cat ${PID_FILE}` start() { echo "starting $NAME . . ." - SBINDIR/piler -d + SBINDIR/piler -d $OPTIONS } stop() { diff --git a/webui/controller/message/bulkrestore.php b/webui/controller/message/bulkrestore.php index 6d84bb24..5db96383 100644 --- a/webui/controller/message/bulkrestore.php +++ b/webui/controller/message/bulkrestore.php @@ -51,6 +51,10 @@ class ControllerMessageBulkrestore extends Controller { require_once 'Zend/Mail/Storage/Imap.php'; $imap_ok = $this->model_mail_mail->connect_imap(); + + if(!$imap_ok) { + syslog(LOG_INFO, "imap connection failed for bulkrestore"); + } }