Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1600 Reply Error(Unable to find document) Squirrelmail 1.4.3 Stbl

closed-fixed
nobody
Compose (426)
5
2004-06-10
2004-05-31
Anonymous
No

USING NEW STABLE Squirrelmail 1.4.3
Apache 1.3.29 (SSL)

Situation :

I've read an E-mail and press the Reply button.
I get an error that the connection has ended while
executing the script.

The direct URL :
https://82.161.5.209/mail/src/compose.php?
passed_id=1&mailbox=INBOX&startMessage=1&passed_en
t_id=0&smaction=forward

Apache produces the following error :
Allowed memory size of 83886080 bytes exhausted (tried
to allocate 79585414 bytes).

(It looks like PHP enters some kind of loop while entering
the reply request)

Increasing memory_limit from 80Mb!! to 180 Mb results
in :
Allowed memory size of 188743680 bytes exhausted
(tried to allocate 159170870 bytes)

Other things you need 2 know :

Forwarding a message DOES work :
https://82.161.5.209/mail/src/compose.php?
passed_id=1&mailbox=INBOX&startMessage=1&passed_en
t_id=0&smaction=forward

Discussion

<< < 1 2 (Page 2 of 2)
  • Logged In: NO

    Looks like someone made a mistake while cleaning up some
    code.
    $body .= $body .= '>' . str_replac.... is causing the problem.
    This should be $body .= '>' . str_replac....

    Here a patch:

    --- ./compose.old 2004-05-24 09:56:51.000000000
    +0200
    +++ ./compose.php 2004-06-01 14:43:54.000000000
    +0200
    @@ -757,9 +757,9 @@
    sqWordWrap($rewrap_body[$i], ($editor_size));
    if (preg_match("/^(>+)/", $rewrap_body[$i],
    $matches)) {
    $gt = $matches[1];
    - $body .= $body .= '>' . str_replace
    ("\n", "\n>$gt ",rtrim($rewrap_body[$i])) ."\n";
    + $body .= '>' . str_replace("\n", "\n>$gt ",rtrim
    ($rewrap_body[$i])) ."\n";
    } else {
    - $body .= $body .= '> ' . str_replace
    ("\n", "\n> ",rtrim($rewrap_body[$i])) . "\n";
    + $body .= '> ' . str_replace("\n", "\n> ",rtrim
    ($rewrap_body[$i])) . "\n";
    }
    unset($rewrap_body[$i]);
    }

     
  • Logged In: YES
    user_id=285765

    This has been fixed in SquirrelMail Stable CVS and an
    updated version will be released soon.

     
    • status: open-fixed --> closed-fixed
     
  • Logged In: YES
    user_id=508228

    This issue is resolved in release 1.4.3a.

     
<< < 1 2 (Page 2 of 2)