diff --git a/init.d/rc.piler.in b/init.d/rc.piler.in index cc60338..6b94cdc 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 6d84bb2..5db9638 100644 --- a/webui/controller/message/bulkrestore.php +++ b/webui/controller/message/bulkrestore.php @@ -51,6 +51,10 @@ 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"); + } }