$stuff = true;
}
if ($default_use_priority) {
- if ( ($msg['PRIORITY'][0] == 1) || ($msg['PRIORITY'][0] == 2) ) {
+ if ( ($msg['PRIORITY'] == 1) || ($msg['PRIORITY'] == 2) ) {
echo "<font color=\"$color[1]\">!</font>\n";
$stuff = true;
}
- if ($msg['PRIORITY'][0] == 5) {
+ if ($msg['PRIORITY'] == 5) {
echo "<font color=\"$color[8]\">?</font>\n";
$stuff = true;
}
if ($id == 'no') {
echo '<b><small><center><font color=red>Thread sorting is not'.
' supported by your IMAP server.<br>Please report this'.
- 'to the system administrator.</center></small></b>';
+ ' to the system administrator.</center></small></b>';
$thread_sort_messages = 0;
$id = array();
}
$server_sort_order = $sort;
$id = sqimap_get_sort_order($imapConnection, $server_sort_order);
if ($id == 'no') {
- echo '<b><small><center><font color=red>Server-side sorting '.
- 'is not supported by your IMAP server.<br>Please report this'.
+ echo '<b><small><center><font color=red>Server-side sorting'.
+ ' is not supported by your IMAP server.<br>Please report this'.
' to the system administrator.</center></small></b>';
$sort = $server_sort_order;
$allow_server_sort = FALSE;
$id = array_reverse(range($real_endMessage, $real_startMessage));
}
$msgs_list = sqimap_get_small_header_list($imapConnection, $id, $issent);
- $flags = sqimap_get_flags_list($imapConnection, $id, $issent);
+// $flags = sqimap_get_flags_list($imapConnection, $id, $issent);
if (sizeof($msgs_list)){
foreach ($msgs_list as $hdr) {
$from[] = $hdr->from;
$cc[] = $hdr->cc;
$size[] = $hdr->size;
$type[] = $hdr->type0;
+ $flag_deleted[] = $hdr->flag_deleted;
+ $flag_answered[] = $hdr->flag_answered;
+ $flag_seen[] = $hdr->flag_seen;
+ $flag_flagged[] = $hdr->flag_flagged;
}
}
}
$messages[$j]['CC'] = $cc[$j];
$messages[$j]['SIZE'] = $size[$j];
$messages[$j]['TYPE0'] = $type[$j];
+ $messages[$j]['FLAG_DELETED'] = $flag_deleted[$j];
+ $messages[$j]['FLAG_ANSWERED'] = $flag_answered[$j];
+ $messages[$j]['FLAG_SEEN'] = $flag_seen[$j];
+ $messages[$j]['FLAG_FLAGGED'] = $flag_flagged[$j];
+
/*
* fix SUBJECT-SORT to remove Re:
$messages[$j]['SUBJECT-SORT'], $matches)){
$messages[$j]['SUBJECT-SORT'] = $matches[2];
}
-
+/*
$num = 0;
while ($num < count($flags[$j])) {
if ($flags[$j][$num] == 'Deleted') {
}
$num++;
}
+*/
$j++;
+
}
/*
if ($allow_thread_sort == TRUE) {
if ($thread_sort_messages == 1 ) {
$set_thread = 2;
- $thread_name = 'Unthread View';
+ $thread_name = _("Unthread View");
}
elseif ($thread_sort_messages == 0) {
$set_thread = 1;
- $thread_name = 'Thread View';
+ $thread_name = _("Thread View");
}
echo '<tr><td> <a href=' . "$base_uri" . 'src/right_main.php?sort='
. "$sort" . '&start_messages=1&set_thread=' . "$set_thread"
- . '&mailbox=' . urlencode($mailbox) . '><small>' . _("$thread_name")
+ . '&mailbox=' . urlencode($mailbox) . '><small>' . $thread_name
. '</a></small> </td></tr>';
}