diff --git a/util/gmail-imap-import.php b/util/gmail-imap-import.php index 9aaa8a2..7d762d4 100644 --- a/util/gmail-imap-import.php +++ b/util/gmail-imap-import.php @@ -27,6 +27,10 @@ } } +else { + display_help(); + exit; +} @@ -100,4 +104,15 @@ } + +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"); +} + + ?> diff --git a/webui/model/search/message.php b/webui/model/search/message.php index 8c48482..2733d7e 100644 --- a/webui/model/search/message.php +++ b/webui/model/search/message.php @@ -225,9 +225,6 @@ $p = strstr($msg, "\nX-MS-Journal-Report:"); - if(!$p) { - $p = strstr($msg, "\nX-MS-Exchange-Organization-Auth"); - } $msg = ''; if($p) { @@ -273,9 +270,6 @@ } $p = strstr($msg, "\nX-MS-Journal-Report:"); - if(!$p) { - $p = strstr($msg, "\nX-MS-Exchange-Organization-Auth"); - } if($p) { $has_journal = 1;