On 26 févr. 06, at 02:13, Mark Edwards wrote:
A little further testing suggests that its the first line that causes the problem:
$a_msg_index = $IMAP->message_index(NULL, $_SESSION['sort_col'], $_SESSION['sort_order']);
Good, that confirms what the problem is.
Having a quick look at message_index in program/include/rcube_imap.inc it appears that it returns an array of the index data for the whole mailbox. Why is this necessary to retrieve the UID for two messages?
Surely there is a better way to do this?
Actually, you're right. I think I just found a much better way to do it using some imap commands. I'll try to make it work and post the appropriate corrections here.
Regards,
-l