From 6c443ae8d2bc6a4e1bd3192ada68d6e602d2f1ca Mon Sep 17 00:00:00 2001 From: SJ Date: Fri, 25 Apr 2014 10:23:07 +0200 Subject: [PATCH] fixed a google imap import issue --- webui/model/google/google.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webui/model/google/google.php b/webui/model/google/google.php index 7d7b94d4..df6ca083 100644 --- a/webui/model/google/google.php +++ b/webui/model/google/google.php @@ -161,9 +161,15 @@ class ModelGoogleGoogle extends Model { private function run_import_command() { + $dir = getcwd(); + + chdir(DIR_IMAP); + syslog(LOG_INFO, "importing emails ..."); system(PILERIMPORT_IMAP_COMMAND, $val); syslog(LOG_INFO, "importing emails done"); + + chdir($dir); }