59177427 |
1 | <?php |
7c1b84d9 |
2 | |
3302d0d4 |
3 | /** |
a09387f4 |
4 | ** mailbox_display.php |
3302d0d4 |
5 | ** |
6 | ** This contains functions that display mailbox information, such as the |
7 | ** table row that has sender, date, subject, etc... |
8 | ** |
9 | **/ |
a4c2cd49 |
10 | |
266fe275 |
11 | $mailbox_display_php = true; |
d068c0ec |
12 | |
1809bad8 |
13 | function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $startMessage, $where, $what) { |
af9404d7 |
14 | global $color, $msgs, $msort; |
cbdc5621 |
15 | global $sent_folder; |
9d157cec |
16 | global $message_highlight_list; |
cbdc5621 |
17 | |
af9404d7 |
18 | $msg = $msgs[$key]; |
d92b6f31 |
19 | |
c36ed9cf |
20 | $senderName = sqimap_find_displayable_name($msg["FROM"]); |
05207a68 |
21 | $urlMailbox = urlencode($mailbox); |
7aaa81fc |
22 | $subject = trim($msg["SUBJECT"]); |
926da13e |
23 | echo "<TR>\n"; |
7151188f |
24 | |
25 | if ($msg["FLAG_FLAGGED"] == true) { $flag = "<font color=$color[2]>"; $flag_end = "</font>"; } |
26 | if ($msg["FLAG_SEEN"] == false) { $bold = "<b>"; $bold_end = "</b>"; } |
cbdc5621 |
27 | if ($mailbox == $sent_folder) { $italic = "<i>"; $italic_end = "</i>"; } |
7151188f |
28 | |
9d157cec |
29 | for ($i=0; $i < count($message_highlight_list); $i++) { |
d059be8f |
30 | if (trim($message_highlight_list[$i]["value"]) != "") { |
31 | if ($message_highlight_list[$i]["match_type"] == "to_cc") { |
a2790a61 |
32 | if (strpos("^^".strtolower($msg["TO"]), strtolower($message_highlight_list[$i]["value"])) || strpos("^^".strtolower($msg["CC"]), strtolower($message_highlight_list[$i]["value"]))) { |
d059be8f |
33 | $hlt_color = $message_highlight_list[$i]["color"]; |
34 | continue; |
35 | } |
a2790a61 |
36 | } else if (strpos("^^".strtolower($msg[strtoupper($message_highlight_list[$i]["match_type"])]),strtolower($message_highlight_list[$i]["value"]))) { |
1195c340 |
37 | $hlt_color = $message_highlight_list[$i]["color"]; |
38 | continue; |
d059be8f |
39 | } |
40 | } |
9d157cec |
41 | } |
623332f3 |
42 | |
9d157cec |
43 | if (!$hlt_color) |
44 | $hlt_color = $color[4]; |
1809bad8 |
45 | |
46 | if ($where && $what) { |
47 | $search_stuff = "&where=".urlencode($where)."&what=".urlencode($what); |
48 | } |
9d157cec |
49 | |
623332f3 |
50 | echo " <td width=1% bgcolor=$hlt_color align=center><input type=checkbox name=\"msg[$t]\" value=".$msg["ID"]."$checked></TD>\n"; |
9d157cec |
51 | echo " <td width=30% bgcolor=$hlt_color>$italic$bold$flag$senderName$flag_end$bold_end$italic_end</td>\n"; |
52 | echo " <td nowrap width=1% bgcolor=$hlt_color><center>$bold$flag".$msg["DATE_STRING"]."$flag_end$bold_end</center></td>\n"; |
d76f6440 |
53 | |
54 | if ($msg["FLAG_ANSWERED"] == true) echo " <td bgcolor=$hlt_color width=1%><b><small>A</small></b></td>\n"; |
55 | elseif (ereg("(1|2)",substr($msg["PRIORITY"],0,1))) echo " <td bgcolor=$hlt_color width=1%><b><small><font color=$color[1]>!</font></small></b></td>\n"; |
56 | else echo " <td bgcolor=$hlt_color width=1%> </td>\n"; |
e86ab872 |
57 | echo " <td bgcolor=$hlt_color>$bold<a href=\"read_body.php?mailbox=$urlMailbox&passed_id=".$msg["ID"]."&startMessage=$startMessage&show_more=0$search_stuff\">$flag$subject$flag_end</a>$bold_end</td>\n"; |
7151188f |
58 | |
59 | echo "</tr>\n"; |
926da13e |
60 | } |
61 | |
62 | /** |
63 | ** This function loops through a group of messages in the mailbox and shows them |
64 | **/ |
5b6ae78a |
65 | function showMessagesForMailbox($imapConnection, $mailbox, $numMessages, $startMessage, $sort, $color,$show_num, $use_cache) { |
66 | global $msgs, $msort; |
cbdc5621 |
67 | global $sent_folder; |
9d157cec |
68 | global $message_highlight_list; |
a3432f47 |
69 | global $auto_expunge; |
70 | |
71 | if ($auto_expunge) { |
72 | sqimap_mailbox_expunge($imapConnection, $mailbox); |
73 | sqimap_mailbox_select($imapConnection, $mailbox); |
74 | } |
61a4ac35 |
75 | |
5b6ae78a |
76 | if (!$use_cache) { |
77 | if ($numMessages >= 1) { |
15a9cd31 |
78 | for ($q = 0; $q < $numMessages; $q++) { |
4bbba0d8 |
79 | if ($mailbox == $sent_folder) |
80 | $hdr = sqimap_get_small_header ($imapConnection, $q+1, true); |
81 | else |
82 | $hdr = sqimap_get_small_header ($imapConnection, $q+1, false); |
83 | |
84 | $from[$q] = $hdr->from; |
85 | $date[$q] = $hdr->date; |
86 | $subject[$q] = $hdr->subject; |
3e69e88b |
87 | $to[$q] = $hdr->to; |
266fe275 |
88 | $priority[$q] = $hdr->priority; |
1195c340 |
89 | $cc[$q] = $hdr->cc; |
15a9cd31 |
90 | |
5b6ae78a |
91 | $flags[$q] = sqimap_get_flags ($imapConnection, $q+1); |
5b10f02a |
92 | } |
5b6ae78a |
93 | } |
94 | |
95 | $j = 0; |
96 | while ($j < $numMessages) { |
97 | $date[$j] = ereg_replace(" ", " ", $date[$j]); |
98 | $tmpdate = explode(" ", trim($date[$j])); |
99 | |
100 | $messages[$j]["TIME_STAMP"] = getTimeStamp($tmpdate); |
101 | $messages[$j]["DATE_STRING"] = getDateString($messages[$j]["TIME_STAMP"]); |
102 | $messages[$j]["ID"] = $j+1; |
103 | $messages[$j]["FROM"] = decodeHeader($from[$j]); |
e9f8ea4e |
104 | $messages[$j]["FROM-SORT"] = strtolower(sqimap_find_displayable_name(decodeHeader($from[$j]))); |
5b6ae78a |
105 | $messages[$j]["SUBJECT"] = decodeHeader($subject[$j]); |
e9f8ea4e |
106 | $messages[$j]["SUBJECT-SORT"] = strtolower(decodeHeader($subject[$j])); |
3e69e88b |
107 | $messages[$j]["TO"] = decodeHeader($to[$j]); |
266fe275 |
108 | $messages[$j]["PRIORITY"] = $priority[$j]; |
1195c340 |
109 | $messages[$j]["CC"] = $cc[$j]; |
e9f8ea4e |
110 | |
111 | # fix SUBJECT-SORT to remove Re: |
112 | if (substr($messages[$j]["SUBJECT-SORT"], 0, 3) == "re:" || |
113 | substr($messages[$j]["SUBJECT-SORT"], 0, 3) == "aw:") |
114 | $messages[$j]["SUBJECT-SORT"] = trim(substr($messages[$j]["SUBJECT-SORT"], 3)); |
5b6ae78a |
115 | |
116 | $num = 0; |
117 | while ($num < count($flags[$j])) { |
118 | if ($flags[$j][$num] == "Deleted") { |
119 | $messages[$j]["FLAG_DELETED"] = true; |
120 | } |
121 | else if ($flags[$j][$num] == "Answered") { |
122 | $messages[$j]["FLAG_ANSWERED"] = true; |
123 | } |
124 | else if ($flags[$j][$num] == "Seen") { |
125 | $messages[$j]["FLAG_SEEN"] = true; |
126 | } |
127 | else if ($flags[$j][$num] == "Flagged") { |
128 | $messages[$j]["FLAG_FLAGGED"] = true; |
129 | } |
130 | $num++; |
7151188f |
131 | } |
5b6ae78a |
132 | $j++; |
3302d0d4 |
133 | } |
5b6ae78a |
134 | |
135 | /** Find and remove the ones that are deleted */ |
136 | $i = 0; |
137 | $j = 0; |
138 | while ($j < $numMessages) { |
139 | if ($messages[$j]["FLAG_DELETED"] == true) { |
140 | $j++; |
141 | continue; |
142 | } |
143 | $msgs[$i] = $messages[$j]; |
144 | |
145 | $i++; |
5b10f02a |
146 | $j++; |
5b10f02a |
147 | } |
5b6ae78a |
148 | $numMessages = $i; |
149 | } |
926da13e |
150 | |
4c2d69ac |
151 | // There's gotta be messages in the array for it to sort them. |
5b6ae78a |
152 | if (($numMessages > 0) && (!$use_cache)) { |
0e919368 |
153 | /** 0 = Date (up) 4 = Subject (up) |
154 | ** 1 = Date (dn) 5 = Subject (dn) |
155 | ** 2 = Name (up) |
156 | ** 3 = Name (dn) |
157 | **/ |
09856735 |
158 | session_unregister("msgs"); |
1c292c82 |
159 | if (($sort == 0) || ($sort == 1)) |
160 | $msort = array_cleave ($msgs, "TIME_STAMP"); |
161 | if (($sort == 2) || ($sort == 3)) |
e9f8ea4e |
162 | $msort = array_cleave ($msgs, "FROM-SORT"); |
1c292c82 |
163 | if (($sort == 4) || ($sort == 5)) |
e9f8ea4e |
164 | $msort = array_cleave ($msgs, "SUBJECT-SORT"); |
1c292c82 |
165 | |
5b6ae78a |
166 | if(($sort % 2) == 1) { |
167 | asort($msort); |
168 | } else { |
169 | arsort($msort); |
0e919368 |
170 | } |
5b6ae78a |
171 | session_register("msort"); |
4c2d69ac |
172 | } |
5b6ae78a |
173 | displayMessageArray($imapConnection, $numMessages, $startMessage, $msgs, $msort, $mailbox, $sort, $color,$show_num); |
09856735 |
174 | session_register("msgs"); |
9f2215a1 |
175 | } |
176 | |
177 | // generic function to convert the msgs array into an HTML table |
5b6ae78a |
178 | function displayMessageArray($imapConnection, $numMessages, $startMessage, &$msgs, $msort, $mailbox, $sort, $color,$show_num) { |
cbdc5621 |
179 | global $folder_prefix, $sent_folder; |
180 | global $imapServerAddress; |
8e9e8afa |
181 | |
9f2215a1 |
182 | // if cache isn't already set, do it now |
90033b64 |
183 | if (!session_is_registered("msgs")) |
184 | session_register("msgs"); |
5b6ae78a |
185 | if (!session_is_registered("msort")) |
186 | session_register("msort"); |
90033b64 |
187 | |
8442ac08 |
188 | |
9c83f905 |
189 | if ($startMessage + ($show_num - 1) < $numMessages) { |
190 | $endMessage = $startMessage + ($show_num-1); |
926da13e |
191 | } else { |
926da13e |
192 | $endMessage = $numMessages; |
193 | } |
8442ac08 |
194 | |
195 | if ($endMessage < $startMessage) { |
196 | $startMessage = $startMessage - $show_num; |
197 | if ($startMessage < 1) |
198 | $startMessage = 1; |
199 | } |
200 | |
9c83f905 |
201 | $nextGroup = $startMessage + $show_num; |
202 | $prevGroup = $startMessage - $show_num; |
20db5033 |
203 | $urlMailbox = urlencode($mailbox); |
926da13e |
204 | |
6b638171 |
205 | do_hook("mailbox_index_before"); |
20db5033 |
206 | /** This is the beginning of the message list table. It wraps around all messages */ |
623332f3 |
207 | echo "<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0>"; |
926da13e |
208 | |
0d1b4832 |
209 | if ($startMessage < $endMessage) { |
f8f9bed9 |
210 | echo "<TR BGCOLOR=\"$color[4]\"><TD>"; |
7e343a7d |
211 | echo "<CENTER>". _("Viewing messages") ." <B>$startMessage</B> ". _("to") ." <B>$endMessage</B> ($numMessages " . _("total") . ")</CENTER>\n"; |
0d1b4832 |
212 | echo "</TD></TR>\n"; |
213 | } else if ($startMessage == $endMessage) { |
5cd6702a |
214 | echo "<TR BGCOLOR=\"$color[4]\"><TD>"; |
7e343a7d |
215 | echo "<CENTER>". _("Viewing message") ." <B>$startMessage</B> ($numMessages " . _("total") . ")</CENTER>\n"; |
0d1b4832 |
216 | echo "</TD></TR>\n"; |
217 | } |
26b6c99c |
218 | |
f8f9bed9 |
219 | echo "<TR BGCOLOR=\"$color[4]\"><TD>"; |
5b10f02a |
220 | if (($nextGroup <= $numMessages) && ($prevGroup >= 0)) { |
88c81396 |
221 | echo "<A HREF=\"right_main.php?use_mailbox_cache=1&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\">". _("Previous") ."</A> | \n"; |
e452ce9b |
222 | echo "<A HREF=\"right_main.php?use_mailbox_cache=1&&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\">". _("Next") ."</A>\n"; |
926da13e |
223 | } |
5b10f02a |
224 | else if (($nextGroup > $numMessages) && ($prevGroup >= 0)) { |
88c81396 |
225 | echo "<A HREF=\"right_main.php?use_mailbox_cache=1&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\">". _("Previous") ."</A> | \n"; |
226 | echo "<FONT COLOR=\"$color[9]\">"._("Next")."</FONT>\n"; |
3302d0d4 |
227 | } |
5b10f02a |
228 | else if (($nextGroup <= $numMessages) && ($prevGroup < 0)) { |
88c81396 |
229 | echo "<FONT COLOR=\"$color[9]\">"._("Previous")."</FONT> | \n"; |
e452ce9b |
230 | echo "<A HREF=\"right_main.php?use_mailbox_cache=1&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\">". _("Next") ."</A>\n"; |
926da13e |
231 | } |
20db5033 |
232 | echo "</TD></TR>\n"; |
926da13e |
233 | |
68347a84 |
234 | /** The delete and move options */ |
f8f9bed9 |
235 | echo "<TR><TD BGCOLOR=\"$color[0]\">"; |
ed4332d1 |
236 | |
e452ce9b |
237 | echo "\n\n\n<FORM name=messageList method=post action=\"move_messages.php?msg=$msg&mailbox=$urlMailbox&startMessage=$startMessage\">"; |
3751dc7f |
238 | do_hook("mailbox_form_before"); |
623332f3 |
239 | echo "<TABLE BGCOLOR=\"$color[0]\" COLS=2 BORDER=0 cellpadding=0 cellspacing=0>\n"; |
ed4332d1 |
240 | echo " <TR>\n"; |
98fe1e9f |
241 | echo " <TD WIDTH=60% ALIGN=LEFT VALIGN=CENTER>\n"; |
aae41ae9 |
242 | echo " <NOBR><SMALL>". _("Move selected to:") ."</SMALL>"; |
7ce342dc |
243 | echo " <TT><SMALL><SELECT NAME=\"targetMailbox\">"; |
244 | |
9f2215a1 |
245 | $boxes = sqimap_mailbox_list($imapConnection); |
7ce342dc |
246 | for ($i = 0; $i < count($boxes); $i++) { |
349ca9f7 |
247 | if ($boxes[$i]["flags"][0] != "noselect" && $boxes[$i]["flags"][1] != "noselect" && $boxes[$i]["flags"][2] != "noselect") { |
248 | $box = $boxes[$i]["unformatted"]; |
249 | $box2 = replace_spaces($boxes[$i]["formatted"]); |
250 | echo " <OPTION VALUE=\"$box\">$box2\n"; |
251 | } |
dd88d31f |
252 | } |
7ce342dc |
253 | echo " </SELECT></SMALL></TT>"; |
aae41ae9 |
254 | echo " <SMALL><INPUT TYPE=SUBMIT NAME=\"moveButton\" VALUE=\"". _("Move") ."\"></SMALL></NOBR>\n"; |
ed4332d1 |
255 | |
256 | echo " </TD>\n"; |
7ce342dc |
257 | echo " <TD WIDTH=40% ALIGN=RIGHT>\n"; |
aae41ae9 |
258 | echo " <NOBR><SMALL><INPUT TYPE=SUBMIT VALUE=\"". _("Delete") ."\"> ". _("checked messages") ."</SMALL></NOBR>\n"; |
ed4332d1 |
259 | echo " </TD>"; |
260 | echo " </TR>\n"; |
261 | |
ed4332d1 |
262 | echo "</TABLE>\n\n\n"; |
aa4c3749 |
263 | echo "</TD></TR>"; |
264 | |
f8f9bed9 |
265 | echo "<TR><TD BGCOLOR=\"$color[0]\">"; |
98fe1e9f |
266 | echo "<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=1 BGCOLOR=\"$color[0]\">"; |
f8f9bed9 |
267 | echo "<TR BGCOLOR=\"$color[5]\" ALIGN=\"center\">"; |
c85b38c9 |
268 | echo " <TD WIDTH=1%><B> </B></TD>"; |
0e919368 |
269 | /** FROM HEADER **/ |
cbdc5621 |
270 | if ($mailbox == $sent_folder) |
271 | echo " <TD WIDTH=30%><B>". _("To") ."</B>"; |
272 | else |
273 | echo " <TD WIDTH=30%><B>". _("From") ."</B>"; |
274 | |
0e919368 |
275 | if ($sort == 2) |
e452ce9b |
276 | 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"; |
0e919368 |
277 | else if ($sort == 3) |
e452ce9b |
278 | 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"; |
0e919368 |
279 | else |
e452ce9b |
280 | 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"; |
0e919368 |
281 | /** DATE HEADER **/ |
c85b38c9 |
282 | echo " <TD nowrap WIDTH=1%><B>". _("Date") ."</B>"; |
926da13e |
283 | if ($sort == 0) |
e452ce9b |
284 | 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"; |
0e919368 |
285 | else if ($sort == 1) |
e452ce9b |
286 | echo " <A HREF=\"right_main.php?newsort=0&startMessage=1&mailbox=$urlMailbox\" TARGET=\"right\"><IMG SRC=\"../images/down_pointer.gif\" BORDER=0></A></TD>\n"; |
0e919368 |
287 | else |
e452ce9b |
288 | 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"; |
be8e07f8 |
289 | echo " <TD WIDTH=1%> </TD>\n"; |
0e919368 |
290 | /** SUBJECT HEADER **/ |
aae41ae9 |
291 | echo " <TD WIDTH=%><B>". _("Subject") ."</B>\n"; |
0e919368 |
292 | if ($sort == 4) |
e452ce9b |
293 | 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"; |
0e919368 |
294 | else if ($sort == 5) |
e452ce9b |
295 | 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"; |
0e919368 |
296 | else |
e452ce9b |
297 | 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"; |
be8e07f8 |
298 | |
926da13e |
299 | echo "</TR>"; |
300 | |
d29aac0e |
301 | |
926da13e |
302 | // loop through and display the info for each message. |
aa4c3749 |
303 | $t = 0; // $t is used for the checkbox number |
4c2d69ac |
304 | if ($numMessages == 0) { // if there's no messages in this folder |
9988d19e |
305 | echo "<TR><TD BGCOLOR=\"$color[4]\" COLSPAN=5><CENTER><BR><B>". _("THIS FOLDER IS EMPTY") ."</B><BR> </CENTER></TD></TR>"; |
4c2d69ac |
306 | } else if ($startMessage == $endMessage) { // if there's only one message in the box, handle it different. |
a37f3771 |
307 | $i = $startMessage; |
af9404d7 |
308 | reset($msort); |
309 | do { |
310 | $key = key($msort); |
311 | next($msort); |
312 | $k++; |
313 | } while (isset ($key) && ($k < $i)); |
1809bad8 |
314 | printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $startMessage, 0, 0); |
4c2d69ac |
315 | } else { |
5b6ae78a |
316 | $i = $startMessage; |
317 | reset($msort); |
318 | do { |
319 | $key = key($msort); |
320 | next($msort); |
321 | $k++; |
322 | } while (isset ($key) && ($k < $i)); |
323 | |
324 | do { |
1809bad8 |
325 | printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $startMessage, 0, 0); |
5b6ae78a |
326 | $key = key($msort); |
4c2d69ac |
327 | $t++; |
5b6ae78a |
328 | $i++; |
329 | next($msort); |
330 | } while ($i < ($endMessage+1)); |
926da13e |
331 | } |
68347a84 |
332 | echo "</FORM></TABLE>"; |
aa4c3749 |
333 | |
68347a84 |
334 | echo "</TABLE>\n"; |
4c2d69ac |
335 | echo "</TD></TR>\n"; |
336 | |
f8f9bed9 |
337 | echo "<TR BGCOLOR=\"$color[4]\"><TD>"; |
20db5033 |
338 | if (($nextGroup <= $numMessages) && ($prevGroup >= 0)) { |
88c81396 |
339 | echo "<A HREF=\"right_main.php?use_mailbox_cache=1&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\">" . _("Previous") . "</A> | \n"; |
e452ce9b |
340 | echo "<A HREF=\"right_main.php?use_mailbox_cache=1&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\">" . _("Next") . "</A>\n"; |
20db5033 |
341 | } |
342 | else if (($nextGroup > $numMessages) && ($prevGroup >= 0)) { |
88c81396 |
343 | echo "<A HREF=\"right_main.php?use_mailbox_cache=1&startMessage=$prevGroup&mailbox=$urlMailbox\" TARGET=\"right\">" . _("Previous") . "</A> | \n"; |
aae41ae9 |
344 | echo "<FONT COLOR=\"$color[9]\">" . _("Next") . "</FONT>\n"; |
20db5033 |
345 | } |
346 | else if (($nextGroup <= $numMessages) && ($prevGroup < 0)) { |
88c81396 |
347 | echo "<FONT COLOR=\"$color[9]\">" . _("Previous"). "</FONT> | \n"; |
e452ce9b |
348 | echo "<A HREF=\"right_main.php?use_mailbox_cache=1&startMessage=$nextGroup&mailbox=$urlMailbox\" TARGET=\"right\">" . _("Next") . "</A>\n"; |
20db5033 |
349 | } |
623332f3 |
350 | echo "</TD></TR></table>"; /** End of message-list table */ |
6b638171 |
351 | |
352 | do_hook("mailbox_index_after"); |
3302d0d4 |
353 | } |
26b6c99c |
354 | ?> |