mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 00:37:02 +02:00
a few fixes
This commit is contained in:
@ -192,6 +192,7 @@ $config['SPHINX_TAG_INDEX'] = 'tag1';
|
||||
$config['SPHINX_NOTE_INDEX'] = 'note1';
|
||||
|
||||
$config['RELOAD_COMMAND'] = 'sudo -n /etc/init.d/rc.piler reload';
|
||||
$config['PILERIMPORT_IMAP_COMMAND'] = '/usr/local/bin/pilerimport -d /var/piler/imap -q -r';
|
||||
|
||||
$config['LDAP_IMPORT_CONFIG_FILE'] = '/usr/local/etc/ldap-import.cfg';
|
||||
|
||||
|
@ -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