Comment 2 for bug 2063334

Revision history for this message
PouletFou (pouletfou) wrote (last edit ):

php8.3-mailparse package is broken on fresh ubuntu 24.04 install.

There is a temporary fix, building the extension from source
(taken from https://github.com/php-mime-mail-parser/php-mime-mail-parser?tab=readme-ov-file#from-source)

git clone https://github.com/php/pecl-mail-mailparse.git
cd pecl-mail-mailparse
phpize
./configure
sed -i 's/#if\s!HAVE_MBSTRING/#ifndef MBFL_MBFILTER_H/' ./mailparse.c
make
sudo mv modules/mailparse.so /usr/lib/php/20230831/
echo "extension=mailparse.so" | sudo tee /etc/php/7.1/mods-available/mailparse.ini
sudo phpenmod mailparse