IMAP server information

\n"; print "

\n"; print "
\n"; print "
Server Capability response:
\n"; foreach($caps_array[0] as $value) { print $value; } print "
\n"; if (!isset($submit) || $submit == 'default') { print "
Select the IMAP commands you would like to run. Most commands require a selected mailbox so the select command is already setup. You can clear all the commands and test your own IMAP command strings. The commands are executed in order. The default values are simple IMAP commands using your default_charset and folder_prefix from Squirrelmail when needed.

NOTE: These commands are live, any changes made will effect your current email account.

\n"; if (!isset($submit)) { $submit = ''; } } else { print "folder_prefix = $folder_prefix
\n"; print "default_charset = $default_charset\n"; } print "

\n"; if ($submit == 'submit') { $type = array(); for ($i=0;$i "SELECT $mailbox", 'TEST_1' => "STATUS $mailbox (MESSAGES RECENT)", 'TEST_2' => "EXAMINE $mailbox", 'TEST_3' => "SEARCH CHARSET \"$default_charset\" ALL *", 'TEST_4' => "THREAD REFERENCES $default_charset ALL", 'TEST_5' => "SORT (DATE) $default_charset ALL", 'TEST_6' => "FETCH 1:* (FLAGS BODY[HEADER.FIELDS (FROM DATE TO)])", 'TEST_7' => "LSUB \"$folder_prefix\" \"*%\"", 'TEST_8' => "LIST \"$folder_prefix*\" \"*\"", 'TEST_9' => ""); } print "
\n"; print "
\n"; print "\n"; print "
SelectTest NameIMAP command string
\n"; foreach($type as $index=>$value) { print "
$index\n"; print "\n"; } print "

\n"; print "
\n"; print "\n"; print "

\n"; $tests = array(); if ($submit == 'submit') { foreach ($type as $index=>$value) { $check = "CHECK_".$index; if (isset($$check)) { $type[$index] = $$index; array_push($tests, $index); } } for ($i=0;$i\n"; print ""; print "\n"; $response = imap_test($imap_stream, $type[$tests[$i]]); print "\n"; print "
".$tests[$i]."
Request:
Response:
"; print_response($response); print "

\n"; } } print "
"; noframes_bottom(); sqimap_logout($imap_stream); do_hook('info_bottom'); ?>