From: Alan Eldridge <alane@ge...> - 2001-05-21 22:03:56
I'll point out that the way the msort array is set up, there's no way to
modify it (without resorting) because of a bug/misfeature in php... if
you've got an array that's sorted, but is out of key order, deleting or
adding or anything will undo your sort. If msort was set up just a leetle
differently, then it would not be half as big a pain in the ass to modify.
msort[n] => string_to_sort_by:mmm
where mmm is the imap message number. then you can still sort, and you can
add/remove because the keys are 0..nmsgs in order now.
Whole reason this matters is that, lacking an official API, deleting or
moving messages with auto-expunge on means manually rebuilding the global
arrays. This blows. See the delete_move_next plugin's latest version for
what I had to do and how ugly it is.
Get latest updates about Open Source Projects, Conferences and News.