#18 Mail_fetch memory exhausted problem

closed
nobody
None
5
2002-10-29
2002-08-04
Anonymous
No

I am getting the following error when i try to donwload
a big message from a remote ftp server using mail_fetch
plugin.
Fatal error: Allowed memory size of 8388608 bytes
exhausted (tried to allocate 513 bytes) in
/var/www/html//webmail/squirrelmail-1.2.7/plugins/mail_fetch/class.POP3.php
on line 401

Looking to class.POP3.php code:
$count = 0;
$MsgArray = array();

$line = fgets($fp,$buffer);
while ( !ereg("^\.\r\n",$line))
{
$MsgArray[$count] = $line;
$count++;
$line = fgets($fp,$buffer);
if(empty($line)) { break; }
}
return $MsgArray;

seems that keep the whole message into memory, causing
this problems, probably a workaround will be create a
temp file where to save partilly donwloaded messages.

Discussion

  • Anonymous - 2002-08-19
    • assigned_to: nobody --> jmunro
     
  • Anonymous - 2002-08-19

    Logged In: YES
    user_id=442854

    will take a look :)

    jason
    jason@stdbev.com

     
  • Anonymous - 2002-10-09
    • assigned_to: jmunro --> nobody
     
  • Thijs Kinkhorst

    Thijs Kinkhorst - 2002-10-29
    • status: open --> closed
     
  • Thijs Kinkhorst

    Thijs Kinkhorst - 2002-10-29

    Logged In: YES
    user_id=285765

    Hello,

    Your report was filed against an old version of SquirrelMail. We
    have new releases out which have fixed many issues. Can you
    please test the most recent version - or even better the CVS
    version - and report if this issue still exists? Thanks!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks