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); }