* @copyright 1999-2019 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins * @subpackage info */ /** * Get the IMAP capabilities * * @param mixed $imap_stream * @return array * @access private */ function get_caps($imap_stream) { return sqimap_run_command_list($imap_stream, 'CAPABILITY',false, $responses, $message,false); } /** * Run an IMAP test and return the results * * @param mixed $imap_stream * @param string $string imap command * @return array Response from the IMAP server * @access private */ function imap_test($imap_stream, $string) { print "".sm_encode_html_special_chars($string).""; $response = sqimap_run_command_list($imap_stream, trim($string),false, $responses, $message,false); array_push($response, $responses . ' ' .$message); return $response; } /** * Print the IMAP response to options.php * * @param array $response results of imap command * @access private */ function print_response($response) { foreach($response as $value) { if (is_array($value)) { print_response($value); } else { print sm_encode_html_special_chars($value)."
\n"; } } }