*** IMPORTANT WARNING ***

*** IMAP CONNECTIVITY WITH PHP IS NOW BROKEN ***

php-imap was the only module capable of imap connections, and this module
was dropped starting from Debian 13 (Trixie), so Devuan 6 (Excalibur)


REASONS

based on uw-imap, no longer maintained (the author/maintainer passed away
in 2012, and Washington University took the decision to drop the project)


WORKAROUND

how to install php-imap manually:

cd /usr/local/src
git clone --depth 1 https://github.com/uw-imap/imap.git
git clone --depth 1 https://github.com/php/pecl-mail-imap.git
cd pecl-mail-imap
phpize
./configure \
  --with-imap=shared,/usr/local/src/imap \
  --with-imap-ssl=shared
make && make install
echo extension=imap > /etc/php.d/20-imap.ini

# restart apache
#
# with systemd
#
# systemctl restart php-fpm
# apachectl graceful
#
# with sysv like init
#
# /etc/init.d/apache2 restart
#
