Comment 0 for bug 1636333

Revision history for this message
Scott Talbert (swt-techie) wrote :

In Ubuntu 16.04, Squirrelmail has a regression from 14.04. Certain messages are missing the subject or message body. Investigation reveals that this is due to the removal of the /e modifier in preg_replace in PHP 7. The server logs show numerous error messages similar to the following:

[Mon Oct 24 19:40:36.248894 2016] [:error] [pid 4699] [client AAA.BBB.CCC.DDD:12345] PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /usr/share/squirrelmail/functions/decode/utf_8.php on line 87, referer: xyz

Upstream has resolved this issue:
https://sourceforge.net/p/squirrelmail/code/14359/

After applying the patch in 14359 (plus the trivial 14347 which is necessary to make 14359 apply cleanly), the problems go away.

PPA with the patches applied: https://launchpad.net/~swt-techie/+archive/ubuntu/squirrelmail