projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added caching of messages in mailbox, as well as next and previous message
[squirrelmail.git]
/
functions
/
mailbox_display.php
diff --git
a/functions/mailbox_display.php
b/functions/mailbox_display.php
index 9339e3db341d1e4a30736ae4b5c548b751c642d5..3716887724fcdf12d00f7ae349dd12af6daf3229 100644
(file)
--- a/
functions/mailbox_display.php
+++ b/
functions/mailbox_display.php
@@
-34,7
+34,7
@@
/**
** This function loops through a group of messages in the mailbox and shows them
**/
/**
** This function loops through a group of messages in the mailbox and shows them
**/
- function showMessagesForMailbox($imapConnection, $mailbox, $numMessages, $startMessage, $sort, $color,
$show_num
) {
+ function showMessagesForMailbox($imapConnection, $mailbox, $numMessages, $startMessage, $sort, $color,
$show_num, &$msgs
) {
include ("../config/config.php");
if ($numMessages >= 1) {
include ("../config/config.php");
if ($numMessages >= 1) {
@@
-145,9
+145,6
@@
}
}
}
}
-// session_register("messages");
-// $messages = serialize($msgs);
-
displayMessageArray($imapConnection, $numMessages, $startMessage, $msgs, $mailbox, $sort, $color,$show_num);
}
displayMessageArray($imapConnection, $numMessages, $startMessage, $msgs, $mailbox, $sort, $color,$show_num);
}
@@
-158,8
+155,9
@@
include("../config/config.php");
// if cache isn't already set, do it now
include("../config/config.php");
// if cache isn't already set, do it now
-// if (!session_is_registered("messages"))
-// session_register("messages");
+ if (!session_is_registered("msgs"))
+ session_register("msgs");
+
if ($startMessage + ($show_num - 1) < $numMessages) {
$endMessage = $startMessage + ($show_num-1);
} else {
if ($startMessage + ($show_num - 1) < $numMessages) {
$endMessage = $startMessage + ($show_num-1);
} else {