From: JohnnyRun <gia...@ga...> - 2003-10-16 07:54:55
|
> > How many messages do you have in your folder. With 8 MB max mem usage I do > not have any "problems" to show 3000 messages in a mailbox. It takes a > long time so I do not do that often. > A lot of messages for me and for all my LAN users. I would like to fix the problem. > > > > As in a prior mail on the same problem of sort function, I know that is > > a allocation problem of PHP and his php.ini configuration file, but I > > would like to fix it. > > > > The function in focus is sqimap_fgets(). > > Is it possible to use normal fgets() instead? > > No sqimap_fgets calls fgets, look at imap_general.php. > > > Is it possible to avoid the storage of the results in a variable but > > print it out "on the fly" ? > > Not with current imap client implementation. > I'll reformat the answer: can you suggest me where can I look for avoid this problem? I see that there are few point in the code where this problem can appear. In your opinion where are the main bottle-necks? > Sorting in combination with on the fly print out of headers is not > possible because imap does not guarantee the order of the returned > headers. > > In other words raise your max mem in php.ini I know, but it's not a real solution. Do you know if there are imap servers that guarantee the order of messages or is it an imap protocol issue? Thanks and bye -- JohnnyRun ------------------------------- |