mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:40:12 +01:00
gui journal fix
This commit is contained in:
parent
df623c3680
commit
344fe59e9f
@ -27,6 +27,10 @@ if($options = getopt($opts, $lopts)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
display_help();
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -100,4 +104,15 @@ function poll_imap_accounts() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function display_help() {
|
||||||
|
$phpself = basename(__FILE__);
|
||||||
|
echo("\nUsage: $phpself --webui [PATH] [OPTIONS...]\n\n");
|
||||||
|
echo("\t--webui=\"[REQUIRED: path to the Piler WebUI Directory]\"\n\n");
|
||||||
|
echo("options:\n");
|
||||||
|
echo("\t-d Daemonize the imap polling\n");
|
||||||
|
echo("\t-h Prints this help screen and exits\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -225,9 +225,6 @@ class ModelSearchMessage extends Model {
|
|||||||
|
|
||||||
|
|
||||||
$p = strstr($msg, "\nX-MS-Journal-Report:");
|
$p = strstr($msg, "\nX-MS-Journal-Report:");
|
||||||
if(!$p) {
|
|
||||||
$p = strstr($msg, "\nX-MS-Exchange-Organization-Auth");
|
|
||||||
}
|
|
||||||
$msg = '';
|
$msg = '';
|
||||||
|
|
||||||
if($p) {
|
if($p) {
|
||||||
@ -273,9 +270,6 @@ class ModelSearchMessage extends Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$p = strstr($msg, "\nX-MS-Journal-Report:");
|
$p = strstr($msg, "\nX-MS-Journal-Report:");
|
||||||
if(!$p) {
|
|
||||||
$p = strstr($msg, "\nX-MS-Exchange-Organization-Auth");
|
|
||||||
}
|
|
||||||
|
|
||||||
if($p) {
|
if($p) {
|
||||||
$has_journal = 1;
|
$has_journal = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user