**/
include('../src/validate.php');
- include ("../functions/i18n.php");
- include("../functions/strings.php");
- include("../config/config.php");
include("../functions/array.php");
include("../functions/imap.php");
- include("../functions/page_header.php");
include("../functions/plugin.php");
- include("../src/load_prefs.php");
// open a connection on the imap port (143)
$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 10); // the 10 is to hide the output
$mailboxURL = urlencode($real_box);
$unseen = 0;
-
+
if (($unseen_notify == 2 && $real_box == "INBOX") ||
$unseen_notify == 3) {
- $unseen = sqimap_unseen_messages($imapConnection, $numUnseen, $real_box);
+ $unseen = sqimap_unseen_messages($imapConnection, $real_box);
if ($unseen_type == 1 && $unseen > 0) {
$unseen_string = "($unseen)";
$unseen_found = true;
$numMessages = sqimap_get_num_messages($imapConnection, $real_box);
if ($numMessages > 0)
- {
+ {
$urlMailbox = urlencode($real_box);
$line .= "\n<small>\n";
$line .= " (<B><A HREF=\"empty_trash.php\" style=\"text-decoration:none\">"._("purge")."</A></B>)";
$line .= "\n</small>\n";
- }
+ }
}
$line .= "</NOBR>";
return $line;
if (in_array('noselect', $boxes[$i]['flags'])) {
$line .= "<FONT COLOR=\"$color[10]\">";
- if (ereg("^( *)([^ ]*)$", $mailbox, $regs)) {
- $line .= str_replace(' ', ' ', $regs[1]);
+ if (ereg("^( *)([^ ]*)", $mailbox, $regs)) {
+ $line .= str_replace(' ', ' ', $mailbox);
if (isset($boxes[$i]['parent']))
- $line .= FoldLink($boxes[$i]['unformatted'],
- $boxes[$i]['parent']);
+ $line .= FoldLink($boxes[$i]['unformatted'], $boxes[$i]['parent']);
elseif ($collapse_folders)
$line .= '<tt> </tt> ';
- $line .= str_replace(' ', ' ', $regs[2]);
}
$line .= '</FONT>';
} else {