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
php8.3-mailparse package is broken on fresh ubuntu 24.04 install.
There is a temporary fix, building the extension from source /github. com/php- mime-mail- parser/ php-mime- mail-parser? tab=readme- ov-file# from-source)
(taken from https:/
git clone https:/ /github. com/php/ pecl-mail- mailparse. git s!HAVE_ MBSTRING/ #ifndef MBFL_MBFILTER_H/' ./mailparse.c mailparse. so /usr/lib/ php/20230831/ mailparse. so" | sudo tee /etc/php/ 7.1/mods- available/ mailparse. ini
cd pecl-mail-mailparse
phpize
./configure
sed -i 's/#if\
make
sudo mv modules/
echo "extension=
sudo phpenmod mailparse