convert function names according to locales... bad php, but not much we can
do. Changed quoteIMAP to quoteimap to work around this for now. It's only
used during login as far as I can find.
sqimap_run_command. Explanation: if we request for a single fetch (not a
list) we shouldn't look for extra fetch lines because this stops the
processing in case of body entities with * a001 fetch lines.
Later we can glue the 2 functions together if we add information to
sqimap_read_data_list about the nature of the call (list or not)
it enables sysadmins to specify a function in $imap_server_address.
This function gets the users imapserver. There is an example function map_yp_alias that gets the server from yellowpages (NIS)
thanks to karenb@cc.gatech.edu.
Didn't merge changes to imap_search.php, as I wanted to take a
closer look at it.
Jon Tai said:
I cleaned up the four imap_*.php files - fixed comments so they use the
/* */ style, fixed spacings, added { } around logic blocks that didn't
have them, etc.
I also hacked sqimap_find_email() in imap_general.php to support strings
in the form of "lehresma@css.tayloru.edu (Luke Ehresman)".
with Missing parameters and those stupid <Undisclosed-Recipient:;> To:
lines that UW IMAP chokes on from Outlook Express.
Also changed some ereg to preg and removed some useless spacing.
Imap will send 2 lines of response on a STATUS mailbox (UNSEEN) when
the last EXAMINE was on the same mailbox. This kept the INBOX from
displaying the number of unread messages. This seems like valid behaviour
to me, but UW IMAP doesn't like it depending on how it's been compiled.
* OK [PARSE] Missing parameter
This commit pretends to fix this, but I confess I'm not happy with
the way I did it. I would be happy if someone improve it 8)
to fix my own function to only call sqimap_session_id() once!
Note: the old API is still there in its entirity, this is just another way to
call things. With the changing sequence numbers though, any function working
with sqimap_session_id() must cache the result for testing against the
response of any command sent.
sqimap_run_command_list as well for those list instances.
I believe that it's now safe for sqimap_session_id() to return a different
ID each time, but haven't yet tested this.