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."
1) do not do a search 1:* UID request in case we do not sort. That isn't
needed, just use a non uid fetch and request the UID together with the rest
of the headers.
2) Started on adding envelope parsing to sqimap_get_small_header list so we
can remove the imap related code from the messages class.
2) cleaned up the functions in mailbox_display, don't use trillions of
arguments when you can provide an array as well.
3) adapted right_main.php and search.php to fit the adapted functions in
mailbox_display
I hope the code makes more sense now an is easier to understand so that we
can start on separating the logic from the html output and prepare for
templates. Volunteers?
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.
the Right-Way, all extra functions have to be rewritten. Current changes
prevent insertion of 8bit headers into new emails when Korean translation
is used. I'll submit same fix to stable if nobody stops me within 24 hours.
about nbsp. adding header conversion if function asks for it in $decide and
conversion is possible. Fixes header conversion problems in compose. Not nice but works.