\n";
print "\n";
print "Server Capability response: \n";
foreach($caps_array[0] as $value) {
print htmlspecialchars($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 = ' . htmlspecialchars($folder_prefix)." \n" .
'default_charset = '.htmlspecialchars($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 " |