diff --git a/contrib/smtp/smtp-source.py b/contrib/smtp/smtp-source.py index 1d47fbec..85375b13 100755 --- a/contrib/smtp/smtp-source.py +++ b/contrib/smtp/smtp-source.py @@ -168,4 +168,4 @@ while i < args.count: if args.debug == 0: - print + print('') diff --git a/util/automated-search.php b/util/automated-search.php index a430d288..5fe0ae32 100755 --- a/util/automated-search.php +++ b/util/automated-search.php @@ -220,7 +220,7 @@ function do_search($data = array(), $automated_search_recipients = array()) $boundary = "--=_NextPart_000_ABCDEFGHI"; - list ($n, $total_found, $all_ids, $messages) = $search->search_messages($a, 0); + $search_result_array = $search->search_messages($a, 0); if($dry_run == 0) { @@ -251,7 +251,7 @@ function do_search($data = array(), $automated_search_recipients = array()) } else { print "search = " . $data[SEARCH_STR] . "\n"; - print_r($all_ids); + print_r($search_result_array[2]); // $all_ids field print $EOL . $EOL; } diff --git a/util/download-imap.php b/util/download-imap.php index 48d44641..392a0e76 100644 --- a/util/download-imap.php +++ b/util/download-imap.php @@ -59,7 +59,7 @@ try { download_users_emails($storage); } else { - "login FAILED at $server for $username\n"; + print "login FAILED at $server for $username\n"; } } catch (Zend_Mail_Protocol_Exception $e) {