added hook for new_window plugin
[squirrelmail.git] / functions / mailbox_display.php
1 <?php
2
3 /**
4 ** mailbox_display.php
5 **
6 ** This contains functions that display mailbox information, such as the
7 ** table row that has sender, date, subject, etc...
8 **
9 **/
10
11 $mailbox_display_php = true;
12
13 function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $startMessage, $where, $what) {
14 global $checkall;
15 global $color, $msgs, $msort;
16 global $sent_folder;
17 global $message_highlight_list;
18 global $index_order;
19
20 $msg = $msgs[$key];
21
22 $senderName = sqimap_find_displayable_name($msg["FROM"]);
23 $urlMailbox = urlencode($mailbox);
24 $subject = trim($msg["SUBJECT"]);
25 if ($subject == "")
26 $subject = _("(no subject)");
27
28 echo "<TR>\n";
29
30 if ($msg["FLAG_FLAGGED"] == true) { $flag = "<font color=$color[2]>"; $flag_end = "</font>"; }
31 if ($msg["FLAG_SEEN"] == false) { $bold = "<b>"; $bold_end = "</b>"; }
32 if ($mailbox == $sent_folder) { $italic = "<i>"; $italic_end = "</i>"; }
33 if ($msg["FLAG_DELETED"]) { $fontstr = "<font color=\"$color[9]\">"; $fontstr_end = "</font>"; }
34
35 for ($i=0; $i < count($message_highlight_list); $i++) {
36 if (trim($message_highlight_list[$i]["value"]) != "") {
37 if ($message_highlight_list[$i]["match_type"] == "to_cc") {
38 if (strpos("^^".strtolower($msg["TO"]), strtolower($message_highlight_list[$i]["value"])) || strpos("^^".strtolower($msg["CC"]), strtolower($message_highlight_list[$i]["value"]))) {
39 $hlt_color = $message_highlight_list[$i]["color"];
40 continue;
41 }
42 } else if (strpos("^^".strtolower($msg[strtoupper($message_highlight_list[$i]["match_type"])]),strtolower($message_highlight_list[$i]["value"]))) {
43 $hlt_color = $message_highlight_list[$i]["color"];
44 continue;
45 }
46 }
47 }
48
49 if (!$hlt_color)
50 $hlt_color = $color[4];
51
52 if ($where && $what) {
53 $search_stuff = "&where=".urlencode($where)."&what=".urlencode($what);
54 }
55
56 if ($checkall == 1)
57 $checked = " checked";
58 else
59 $checked = "";
60
61 for ($i=1; $i <= count($index_order); $i++) {
62 switch ($index_order[$i]) {
63 case 1: # checkbox
64 echo " <td width=1% bgcolor=$hlt_color align=center><input type=checkbox name=\"msg[$t]\" value=".$msg["ID"]."$checked></TD>\n";
65 break;
66 case 2: # from
67 echo " <td width=30% bgcolor=$hlt_color>$italic$bold$flag$fontstr$senderName$fontstr_end$flag_end$bold_end$italic_end</td>\n";
68 break;
69 case 3: # date
70 echo " <td nowrap width=1% bgcolor=$hlt_color><center>$bold$flag$fontstr".$msg["DATE_STRING"]."$fontstr_end$flag_end$bold_end</center></td>\n";
71 break;
72 case 4: # subject
73 echo " <td bgcolor=$hlt_color>$bold";
74 echo "<a href=\"read_body.php?mailbox=$urlMailbox&passed_id=".$msg["ID"]."&startMessage=$startMessage&show_more=0$search_stuff\"";
75 do_hook("subject_link");
76 echo ">$flag$subject$flag_end</a>$bold_end</td>\n";
77 break;
78 case 5: # flags
79 $stuff = false;
80 echo " <td bgcolor=$hlt_color align=center width=1% nowrap><b><small>\n";
81 if ($msg["FLAG_ANSWERED"] == true) {
82 echo "A\n";
83 $stuff = true;
84 }
85 if ($msg["TYPE0"] == "multipart") {
86 echo "+\n";
87 $stuff = true;
88 }
89 if (ereg("(1|2)",substr($msg["PRIORITY"],0,1))) {
90 echo "<font color=$color[1]>!</font>\n";
91 $stuff = true;
92 }
93 if ($msg["FLAG_DELETED"]) {
94 echo "<font color=\"$color[1]\">D</font>\n";
95 $stuff = true;
96 }
97
98 if (!$stuff) echo "&nbsp;\n";
99 echo "</small></b></td>\n";
100 break;
101 case 6: # size
102 echo " <td bgcolor=$hlt_color width=1%>$bold$fontstr".show_readable_size($msg['SIZE'])."$fontstr_end$bold_end</td>\n";
103 break;
104 }
105 }
106
107
108 echo "</tr>\n";
109 }
110
111 /**
112 ** This function loops through a group of messages in the mailbox and shows them
113 **/
114 function showMessagesForMailbox($imapConnection, $mailbox, $numMessages, $startMessage, $sort, $color,$show_num, $use_cache) {
115 global $msgs, $msort;
116 global $sent_folder;
117 global $message_highlight_list;
118 global $auto_expunge;
119
120 if ($auto_expunge == true) sqimap_mailbox_expunge($imapConnection, $mailbox, false);
121 sqimap_mailbox_select($imapConnection, $mailbox);
122
123 if (!$use_cache) {
124 // if it's sorted
125 if ($numMessages >= 1) {
126 if ($sort < 6) {
127 for ($q = 0; $q < $numMessages; $q++) {
128 if($mailbox == $sent_folder)
129 $hdr = sqimap_get_small_header ($imapConnection, $q+1, true);
130 else
131 $hdr = sqimap_get_small_header ($imapConnection, $q+1, false);
132
133 $from[$q] = $hdr->from;
134 $date[$q] = $hdr->date;
135 $subject[$q] = $hdr->subject;
136 $to[$q] = $hdr->to;
137 $priority[$q] = $hdr->priority;
138 $cc[$q] = $hdr->cc;
139 $size[$q] = $hdr->size;
140 $type[$q] = $hdr->type0;
141 $flags[$q] = sqimap_get_flags ($imapConnection, $q+1);
142 $id[$q] = $q + 1;
143 }
144 } else {
145 // if it's not sorted
146 if ($startMessage + ($show_num - 1) < $numMessages) {
147 $endMessage = $startMessage + ($show_num-1);
148 } else {
149 $endMessage = $numMessages;
150 }
151
152 if ($endMessage < $startMessage) {
153 $startMessage = $startMessage - $show_num;
154 if ($startMessage < 1)
155 $startMessage = 1;
156 }
157
158
159 $real_startMessage = $numMessages - $startMessage + 1;
160 $real_endMessage = $numMessages - $startMessage - $show_num;
161 if ($real_endMessage <= 0)
162 $real_endMessage = 1;
163
164 $j = 0;
165 for ($q = $real_startMessage; $q >= $real_endMessage; $q--) {
166 if($mailbox == $sent_folder)
167 $hdr = sqimap_get_small_header ($imapConnection, $q, true);
168 else
169 $hdr = sqimap_get_small_header ($imapConnection, $q, false);
170
171 $from[$j] = $hdr->from;
172 $date[$j] = $hdr->date;
173 $subject[$j] = $hdr->subject;
174 $to[$j] = $hdr->to;
175 $priority[$j] = $hdr->priority;
176 $cc[$j] = $hdr->cc;
177 $size[$j] = $hdr->size;
178 $type[$j] = $hdr->type0;
179 $flags[$j] = sqimap_get_flags ($imapConnection, $q);
180 $id[$j] = $q;
181 $j++;
182 }
183 }
184 }
185
186 $j = 0;
187 if ($sort == 6) {
188 $end = $startMessage + $show_num - 1;
189 } else {
190 $end = $numMessages;
191 }
192 while ($j < $end) {
193 $date[$j] = ereg_replace(" ", " ", $date[$j]);
194 $tmpdate = explode(" ", trim($date[$j]));
195
196 $messages[$j]["TIME_STAMP"] = getTimeStamp($tmpdate);
197 $messages[$j]["DATE_STRING"] = getDateString($messages[$j]["TIME_STAMP"]);
198 $messages[$j]["ID"] = $id[$j];
199 $messages[$j]["FROM"] = decodeHeader($from[$j]);
200 $messages[$j]["FROM-SORT"] = strtolower(sqimap_find_displayable_name(decodeHeader($from[$j])));
201 $messages[$j]["SUBJECT"] = decodeHeader($subject[$j]);
202 $messages[$j]["SUBJECT-SORT"] = strtolower(decodeHeader($subject[$j]));
203 $messages[$j]["TO"] = decodeHeader($to[$j]);
204 $messages[$j]["PRIORITY"] = $priority[$j];
205 $messages[$j]["CC"] = $cc[$j];
206 $messages[$j]["SIZE"] = $size[$j];
207 $messages[$j]["TYPE0"] = $type[$j];
208
209 # fix SUBJECT-SORT to remove Re:
210 $re_abbr = # Add more here!
211 "vedr|sv|" . # Danish
212 "re|aw"; # English
213 if (eregi("^($re_abbr):[ ]*(.*)$", $messages[$j]['SUBJECT-SORT'], $regs))
214 $messages[$j]['SUBJECT-SORT'] = $regs[2];
215
216 $num = 0;
217 while ($num < count($flags[$j])) {
218 if ($flags[$j][$num] == "Deleted") {
219 $messages[$j]["FLAG_DELETED"] = true;
220 }
221 elseif ($flags[$j][$num] == "Answered") {
222 $messages[$j]["FLAG_ANSWERED"] = true;
223 }
224 elseif ($flags[$j][$num] == "Seen") {
225 $messages[$j]["FLAG_SEEN"] = true;
226 }
227 elseif ($flags[$j][$num] == "Flagged") {
228 $messages[$j]["FLAG_FLAGGED"] = true;
229 }
230 $num++;
231 }
232 $j++;
233 }
234
235 /* Only ignore messages flagged as deleted if we are using a
236 * trash folder or auto_expunge */
237 if (($move_to_trash || $auto_expunge) && $sort != 6)
238 {
239 /** Find and remove the ones that are deleted */
240 $i = 0;
241 $j = 0;
242 while ($j < $numMessages) {
243 if ($messages[$j]["FLAG_DELETED"] == true) {
244 $j++;
245 continue;
246 }
247 $msgs[$i] = $messages[$j];
248
249 $i++;
250 $j++;
251 }
252 $numMessages = $i;
253 } else {
254 $msgs = $messages;
255 }
256 }
257
258 // There's gotta be messages in the array for it to sort them.
259 if ($numMessages > 0 && ! $use_cache) {
260 /** 0 = Date (up) 4 = Subject (up)
261 ** 1 = Date (dn) 5 = Subject (dn)
262 ** 2 = Name (up)
263 ** 3 = Name (dn)
264 **/
265 session_unregister("msgs");
266 if (($sort == 0) || ($sort == 1))
267 $msort = array_cleave ($msgs, "TIME_STAMP");
268 if (($sort == 2) || ($sort == 3))
269 $msort = array_cleave ($msgs, "FROM-SORT");
270 if (($sort == 4) || ($sort == 5))
271 $msort = array_cleave ($msgs, "SUBJECT-SORT");
272 if ($sort == 6)
273 $msort = $msgs;
274
275 if ($sort < 6) {
276 if($sort % 2) {
277 asort($msort);
278 } else {
279 arsort($msort);
280 }
281 }
282 session_register("msort");
283 }
284 displayMessageArray($imapConnection, $numMessages, $startMessage, $msgs, $msort, $mailbox, $sort, $color,$show_num);
285 session_register("msgs");
286 }
287
288 // generic function to convert the msgs array into an HTML table
289 function displayMessageArray($imapConnection, $numMessages, $startMessage, &$msgs, $msort, $mailbox, $sort, $color,$show_num) {
290 global $folder_prefix, $sent_folder;
291 global $imapServerAddress;
292 global $index_order, $real_endMessage, $real_startMessage, $checkall;
293
294 // if cache isn't already set, do it now
295 if (!session_is_registered("msgs"))
296 session_register("msgs");
297 if (!session_is_registered("msort"))
298 session_register("msort");
299
300 if ($startMessage + ($show_num - 1) < $numMessages) {
301 $endMessage = $startMessage + ($show_num-1);
302 } else {
303 $endMessage = $numMessages;
304 }
305
306 if ($endMessage < $startMessage) {
307 $startMessage = $startMessage - $show_num;
308 if ($startMessage < 1)
309 $startMessage = 1;
310 }
311
312 $nextGroup = $startMessage + $show_num;
313 $prevGroup = $startMessage - $show_num;
314 $urlMailbox = urlencode($mailbox);
315
316 do_hook("mailbox_index_before");
317
318 $Message = '';
319 if ($startMessage < $endMessage) {
320 $Message = _("Viewing messages") ." <B>$startMessage</B> ". _("to") ." <B>$endMessage</B> ($numMessages " . _("total") . ")\n";
321 } elseif ($startMessage == $endMessage) {
322 $Message = _("Viewing message") ." <B>$startMessage</B> ($numMessages " . _("total") . ")\n";
323 }
324
325 $More = '';
326 if ($sort == 6) {
327 $use = 0;
328 } else {
329 $use = 1;
330 }
331 if (($nextGroup <= $numMessages) && ($prevGroup >= 0)) {
332 $More = "<A HREF=\"right_main.php?use_mailbox_cache=$use&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\">". _("Previous") ."</A> | \n";
333 $More .= "<A HREF=\"right_main.php?use_mailbox_cache=$use&&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\">". _("Next") ."</A>\n";
334 }
335 elseif (($nextGroup > $numMessages) && ($prevGroup >= 0)) {
336 $More = "<A HREF=\"right_main.php?use_mailbox_cache=$use&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\">". _("Previous") ."</A> | \n";
337 $More .= "<FONT COLOR=\"$color[9]\">"._("Next")."</FONT>\n";
338 }
339 elseif (($nextGroup <= $numMessages) && ($prevGroup < 0)) {
340 $More = "<FONT COLOR=\"$color[9]\">"._("Previous")."</FONT> | \n";
341 $More .= "<A HREF=\"right_main.php?use_mailbox_cache=$use&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\">". _("Next") ."</A>\n";
342 }
343
344 mail_message_listing_beginning($imapConnection,
345 "move_messages.php?msg=$msg&mailbox=$urlMailbox&startMessage=$startMessage",
346 $mailbox, $sort, $Message, $More, $startMessage);
347
348 $groupNum = $startMessage % ($show_num - 1);
349 $real_startMessage = $startMessage;
350 if ($sort == 6) {
351 if ($endMessage - $startMessage < $show_num - 1) {
352 $endMessage = $endMessage - $startMessage + 1;
353 $startMessage = 1;
354 } else if ($startMessage > $show_num) {
355 $endMessage = $show_num;
356 $startMessage = 1;
357 }
358 }
359
360 $endVar = $endMessage + 1;
361
362 // loop through and display the info for each message.
363 $t = 0; // $t is used for the checkbox number
364 if ($numMessages == 0) { // if there's no messages in this folder
365 echo "<TR><TD BGCOLOR=\"$color[4]\" COLSPAN=" . count($index_order);
366 echo "><CENTER><BR><B>". _("THIS FOLDER IS EMPTY") ."</B><BR>&nbsp;</CENTER></TD></TR>";
367 } else if ($startMessage == $endMessage) { // if there's only one message in the box, handle it different.
368 if ($sort != 6)
369 $i = $startMessage;
370 else
371 $i = 1;
372 reset($msort);
373 do {
374 $key = key($msort);
375 next($msort);
376 $k++;
377 } while (isset ($key) && ($k < $i));
378 printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $real_startMessage, 0, 0);
379 } else {
380 $i = $startMessage;
381
382 reset($msort);
383 do {
384 $key = key($msort);
385 next($msort);
386 $k++;
387 } while (isset ($key) && ($k < $i));
388
389 do {
390 printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $real_startMessage, 0, 0);
391 $key = key($msort);
392 $t++;
393 $i++;
394 next($msort);
395 } while ($i && $i < $endVar);
396 }
397 echo "</TABLE>";
398
399 echo "</td></tr>\n";
400
401 echo "<TR BGCOLOR=\"$color[4]\"><TD>";
402 echo "<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td>";
403 echo "$More</td><td align=right>\n";
404 if (!$startMessage) $startMessage=1;
405 if ( $checkall == "1")
406 echo "\n<A HREF=\"right_main.php?mailbox=$urlMailbox&startMessage=$real_startMessage&sort=$sort\">" . _("Unselect All") . "</A>\n";
407 else
408 echo "\n<A HREF=\"right_main.php?mailbox=$urlMailbox&startMessage=$real_startMessage&sort=$sort&checkall=1\">" . _("Select All") . "</A>\n";
409
410 echo "</td></tr></table>";
411 echo "</td></tr>";
412 echo "</table>"; /** End of message-list table */
413
414 do_hook("mailbox_index_after");
415 }
416
417 /* Displays the standard message list header.
418 * To finish the table, you need to do a "</table></table>";
419 * $moveURL is the URL to submit the delete/move form to
420 * $mailbox is the current mailbox
421 * $sort is the current sorting method (-1 for no sorting available [searches])
422 * $Message is a message that is centered on top of the list
423 * $More is a second line that is left aligned
424 */
425 function mail_message_listing_beginning($imapConnection, $moveURL,
426 $mailbox = '', $sort = -1, $Message = '', $More = '', $startMessage = 1)
427 {
428 global $color, $index_order, $auto_expunge, $move_to_trash;
429 global $checkall, $sent_folder;
430 $urlMailbox = urlencode($mailbox);
431
432 /** This is the beginning of the message list table. It wraps around all messages */
433 echo "<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0>";
434
435 if ($Message)
436 {
437 echo "<TR BGCOLOR=\"$color[4]\"><TD align=center>$Message</td></tr>\n";
438 }
439
440 echo "<TR BGCOLOR=\"$color[4]\"><TD>";
441 echo "<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td>";
442 echo "$More</td><td align=right>\n";
443 if ( $checkall == "1")
444 echo "\n<A HREF=\"right_main.php?mailbox=$urlMailbox&startMessage=$startMessage&sort=$sort\">" . _("Unselect All") . "</A>\n";
445 else
446 echo "\n<A HREF=\"right_main.php?mailbox=$urlMailbox&startMessage=$startMessage&sort=$sort&checkall=1\">" . _("Select All") . "</A>\n";
447
448 echo "</td></tr></table>";
449 echo "</td></tr>";
450
451 /** The delete and move options */
452 echo "<TR><TD BGCOLOR=\"$color[0]\">";
453
454 echo "\n\n\n<FORM name=messageList method=post action=\"$moveURL\">\n";
455 echo "<TABLE BGCOLOR=\"$color[0]\" COLS=2 BORDER=0 cellpadding=0 cellspacing=0 width=100%>\n";
456 echo " <TR>\n";
457 echo " <TD WIDTH=60% ALIGN=LEFT VALIGN=CENTER>\n";
458
459
460 echo " <NOBR><SMALL>". _("Move selected to:") ."</SMALL>";
461 echo " <TT><SMALL><SELECT NAME=\"targetMailbox\">";
462
463 $boxes = sqimap_mailbox_list($imapConnection);
464 for ($i = 0; $i < count($boxes); $i++) {
465 if ($boxes[$i]["flags"][0] != "noselect" &&
466 $boxes[$i]["flags"][1] != "noselect" &&
467 $boxes[$i]["flags"][2] != "noselect") {
468 $box = $boxes[$i]["unformatted"];
469 $box2 = replace_spaces($boxes[$i]["unformatted-disp"]);
470 echo " <OPTION VALUE=\"$box\">$box2</option>\n";
471 }
472 }
473 echo " </SELECT></SMALL></TT>";
474 echo " <SMALL><INPUT TYPE=SUBMIT NAME=\"moveButton\" VALUE=\"". _("Move") ."\"></SMALL></NOBR>\n";
475 echo " </TD>\n";
476 echo " <TD WIDTH=40% ALIGN=RIGHT>\n";
477 if (! $auto_expunge) {
478 echo " <NOBR><SMALL><INPUT TYPE=SUBMIT NAME=\"expungeButton\" VALUE=\"". _("Expunge") ."\">&nbsp;". _("mailbox") ."</SMALL></NOBR>&nbsp;&nbsp;\n";
479 }
480 echo " <NOBR><SMALL><INPUT TYPE=SUBMIT VALUE=\"". _("Delete") ."\">&nbsp;". _("checked messages") ."</SMALL></NOBR>\n";
481 echo " </TD>\n";
482 echo " </TR>\n";
483
484 echo "</TABLE>\n";
485 do_hook("mailbox_form_before");
486 echo "</TD></TR>";
487
488 echo "<TR><TD BGCOLOR=\"$color[0]\">";
489 echo "<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=1 BGCOLOR=\"$color[0]\">";
490 echo "<TR BGCOLOR=\"$color[5]\" ALIGN=\"center\">";
491
492 $urlMailbox=urlencode($mailbox);
493
494 // Print the headers
495 for ($i=1; $i <= count($index_order); $i++) {
496 switch ($index_order[$i]) {
497 case 1: # checkbox
498 case 5: # flags
499 echo " <TD WIDTH=1%><B>&nbsp;</B></TD>";
500 break;
501
502 case 2: # from
503 if ($mailbox == $sent_folder)
504 echo " <TD WIDTH=30%><B>". _("To") ."</B>";
505 else
506 echo " <TD WIDTH=30%><B>". _("From") ."</B>";
507
508 if ($sort == 2)
509 echo " <A HREF=\"right_main.php?newsort=3&startMessage=1&mailbox=$urlMailbox\" TARGET=\"right\"><IMG SRC=\"../images/up_pointer.gif\" BORDER=0></A></TD>\n";
510 elseif ($sort == 3)
511 echo " <A HREF=\"right_main.php?newsort=2&startMessage=1&mailbox=$urlMailbox\" TARGET=\"right\"><IMG SRC=\"../images/down_pointer.gif\" BORDER=0></A></TD>\n";
512 elseif ($sort != -1)
513 echo " <A HREF=\"right_main.php?newsort=3&startMessage=1&mailbox=$urlMailbox\" TARGET=\"right\"><IMG SRC=\"../images/sort_none.gif\" BORDER=0></A></TD>\n";
514 echo "</TD>";
515 break;
516
517 case 3: # date
518 echo " <TD nowrap WIDTH=1%><B>". _("Date") ."</B>";
519 if ($sort == 0)
520 echo " <A HREF=\"right_main.php?newsort=1&startMessage=1&mailbox=$urlMailbox\" TARGET=\"right\"><IMG SRC=\"../images/up_pointer.gif\" BORDER=0></A></TD>\n";
521 elseif ($sort == 1)
522 echo " <A HREF=\"right_main.php?newsort=6&startMessage=1&mailbox=$urlMailbox\" TARGET=\"right\"><IMG SRC=\"../images/down_pointer.gif\" BORDER=0></A></TD>\n";
523 elseif ($sort == 6)
524 echo " <A HREF=\"right_main.php?newsort=0&startMessage=1&mailbox=$urlMailbox\" TARGET=\"right\"><IMG SRC=\"../images/sort_none.gif\" BORDER=0></A></TD>\n";
525 elseif ($sort != -1)
526 echo " <A HREF=\"right_main.php?newsort=0&startMessage=1&mailbox=$urlMailbox\" TARGET=\"right\"><IMG SRC=\"../images/sort_none.gif\" BORDER=0></A></TD>\n";
527 echo "</TD>";
528 break;
529
530 case 4: # subject
531 echo " <TD WIDTH=%><B>". _("Subject") ."</B>\n";
532 if ($sort == 4)
533 echo " <A HREF=\"right_main.php?newsort=5&startMessage=1&mailbox=$urlMailbox\" TARGET=\"right\"><IMG SRC=\"../images/up_pointer.gif\" BORDER=0></A></TD>\n";
534 elseif ($sort == 5)
535 echo " <A HREF=\"right_main.php?newsort=4&startMessage=1&mailbox=$urlMailbox\" TARGET=\"right\"><IMG SRC=\"../images/down_pointer.gif\" BORDER=0></A></TD>\n";
536 elseif ($sort != -1)
537 echo " <A HREF=\"right_main.php?newsort=5&startMessage=1&mailbox=$urlMailbox\" TARGET=\"right\"><IMG SRC=\"../images/sort_none.gif\" BORDER=0></A></TD>\n";
538 echo "</TD>";
539 break;
540
541 case 6: # size
542 echo " <TD WIDTH=1%><b>" . _("Size")."</b></TD>\n";
543 break;
544 }
545 }
546 echo "</TR>\n";
547 }
548 ?>