include("../config/config.php");
include("../functions/strings.php");
include("../functions/imap.php");
include("../config/config.php");
include("../functions/strings.php");
include("../functions/imap.php");
// open a connection on the imap port (143)
$imapConnection = loginToImapServer($username, $key, $imapServerAddress);
// open a connection on the imap port (143)
$imapConnection = loginToImapServer($username, $key, $imapServerAddress);
echo "<code><FONT FACE=\"Arial,Helvetica\">\n";
for ($i = 0;$i < count($str); $i++) {
$mailbox = Chop($str[$i]);
echo "<code><FONT FACE=\"Arial,Helvetica\">\n";
for ($i = 0;$i < count($str); $i++) {
$mailbox = Chop($str[$i]);
// find the quote at the begining of the mailbox name.
// i subtract 1 from the strlen so it doesn't find the quote at the end of the mailbox name.
// find the quote at the begining of the mailbox name.
// i subtract 1 from the strlen so it doesn't find the quote at the end of the mailbox name.
$periodCount = countCharInString($mailbox, ".");
// indent the correct number of spaces.
$periodCount = countCharInString($mailbox, ".");
// indent the correct number of spaces.
$mailboxURL = urlencode($mailbox);
echo "<a href=\"right_main.php?sort=0&startMessage=1&mailbox=$mailboxURL\" target=\"right\" style=\"text-decoration:none\"><FONT FACE=\"Arial,Helvetica\">";
$mailboxURL = urlencode($mailbox);
echo "<a href=\"right_main.php?sort=0&startMessage=1&mailbox=$mailboxURL\" target=\"right\" style=\"text-decoration:none\"><FONT FACE=\"Arial,Helvetica\">";