the variables by reference to the call. This makes mbxs_tree an undefined
and unusued variable and might cause errors in php 4.4+ (especially with
objects).
Recommended by RFC 2683 sect 3.2.2, allows a user to show all mailboxes regardless
of subscription. Thanks Simon Matter for the idea.
btw when will the "oldway" in left_main disappear?
Also remove a few more globals that were unused
Remove a few newlines at the end of files
Hopefully this will help shrink the memory footprint of SM just slightly
global variable $boxesnew was being corrupted by another function (I don't really see why its even global at this point, its also stored in the Session). Changed the name of the variable used in the offending function. The symptoms were that the folder list boxes would not be populated, errors when emptying the trash, and errors in the Folders Options.
Added paginator support for asearch
Added next/prev links in read_body to walk through search results
Added individual sort settings / mailbox
Added what I forgot to mention
exists with in_array (which returns just that boolean), and fix the
left over call to array_search to also check for NULL return.
This should fix the problems that Fredrik, me and other PHP 4.1 users
had with Marc's recent changes.
From PHP docs:
"Note: Prior to PHP 4.2.0, array_search() returns NULL on failure instead of FALSE."
select response.
* Tried to fix the broken del move next function and added a few arguments
to the dmn_expunge function because the globals scared me when I couldn't
get the job done.
scope and with register globals = on the mailbox-tree wasn't returned. We
should work on caching the mailbox-tree and rewrite the functions that make
use of the old mailbox_list function.
list.
Make use of the sorted list with id's from the session if the mailbox state
didn't change.
All performance related imap fixes were found after playing with thetereal.
If you want to try itt yourself:
tethereal -t a -ni lo -f 'port 143' -R 'imap.request'
with lo the interface.
the whole subscription list and looked up if the requested mailbox was part
of it. It's better to subscribe and surpress the NO response if already
subscribed.