mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 06:30:13 +01:00
fixed a google imap import issue
This commit is contained in:
parent
989cd68054
commit
6c443ae8d2
@ -161,9 +161,15 @@ class ModelGoogleGoogle extends Model {
|
|||||||
|
|
||||||
|
|
||||||
private function run_import_command() {
|
private function run_import_command() {
|
||||||
|
$dir = getcwd();
|
||||||
|
|
||||||
|
chdir(DIR_IMAP);
|
||||||
|
|
||||||
syslog(LOG_INFO, "importing emails ...");
|
syslog(LOG_INFO, "importing emails ...");
|
||||||
system(PILERIMPORT_IMAP_COMMAND, $val);
|
system(PILERIMPORT_IMAP_COMMAND, $val);
|
||||||
syslog(LOG_INFO, "importing emails done");
|
syslog(LOG_INFO, "importing emails done");
|
||||||
|
|
||||||
|
chdir($dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user