mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:57:03 +02:00
a few fixes
This commit is contained in:
@ -129,6 +129,8 @@ class ModelGoogleGoogle extends Model {
|
||||
}
|
||||
}
|
||||
|
||||
if($count > 0) { $this->run_import_command(); }
|
||||
|
||||
return $count;
|
||||
}
|
||||
|
||||
@ -158,6 +160,13 @@ class ModelGoogleGoogle extends Model {
|
||||
}
|
||||
|
||||
|
||||
private function run_import_command() {
|
||||
syslog(LOG_INFO, "importing emails ...");
|
||||
system(PILERIMPORT_IMAP_COMMAND, $val);
|
||||
syslog(LOG_INFO, "importing emails done");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user