[GH-ISSUE #1654] 💬 [Question] php-imap appears deprecated, is there plan for a replacement? #689

Closed
opened 2026-02-25 21:35:41 +03:00 by kerem · 5 comments
Owner

Originally created by @jeremiah on GitHub (Sep 3, 2025).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1654

💬 Question

I'd like to install Cypht in a container. I set out to do a manual installation since I'd rather not use Docker. Doing the manual installation it says; "For PHP 8.4 if there is missing php_imap extension, please download(to https://pecl.php.net/package/imap/1.0.3/windows) and add it manually(adding to php-8.4.4\ext and uncommenting ;extension=imap in php.ini)"

Here I'm running Debian 13 which is the stable version of Debian. php-imap and its dependencies are not available on Debian. Also, it appears that php-imap is deprecated and unmaintained - see php watch and GitHub repo. This makes me rather nervous as deprecated, unmaintained modules have a way of leading to vulnerabilities.

I've used composer to install webklex/php-imap but the Cypht install script does not see this and won't install cypht. I can edit the bash script but that likely won't help because Cypht won't see or use the webklex/php-imap module.

Are there plans to change the code so that Cypht uses a different IMAP implementation?

Originally created by @jeremiah on GitHub (Sep 3, 2025). Original GitHub issue: https://github.com/cypht-org/cypht/issues/1654 ## 💬 Question I'd like to install Cypht in a container. I set out to do a manual installation since I'd rather not use Docker. Doing the manual installation it says; "For PHP 8.4 if there is missing php_imap extension, please download(to https://pecl.php.net/package/imap/1.0.3/windows) and add it manually(adding to php-8.4.4\ext and uncommenting ;extension=imap in php.ini)" Here I'm running Debian 13 which is the stable version of Debian. php-imap and its dependencies are not available on Debian. Also, it appears that php-imap is deprecated and unmaintained - see [php watch](https://php.watch/versions/8.4/imap-unbundled) and [GitHub repo](https://github.com/php/pecl-mail-imap). This makes me rather nervous as deprecated, unmaintained modules have a way of leading to vulnerabilities. I've used composer to install `webklex/php-imap` but the Cypht install script does not see this and won't install cypht. I can edit the bash script but that likely won't help because Cypht won't see or use the `webklex/php-imap` module. Are there plans to change the code so that Cypht uses a different IMAP implementation?
kerem 2026-02-25 21:35:41 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@marclaporte commented on GitHub (Sep 3, 2025):

Thank you for sharing that the IMAP extension in PHP has been removed between PHP 8.3 and PHP 8.4!

Cypht doesn't require ext-imap:
https://github.com/cypht-org/cypht/blob/master/composer.json#L37

I added a question to: https://github.com/cypht-org/cypht-website/pull/130

@jeremiah Please try installing without ext-imap

<!-- gh-comment-id:3249706999 --> @marclaporte commented on GitHub (Sep 3, 2025): Thank you for sharing that the IMAP extension in PHP has been removed between PHP 8.3 and PHP 8.4! Cypht doesn't require ext-imap: https://github.com/cypht-org/cypht/blob/master/composer.json#L37 I added a question to: https://github.com/cypht-org/cypht-website/pull/130 @jeremiah Please try installing without ext-imap
Author
Owner

@jeremiah commented on GitHub (Sep 3, 2025):

That is good news. :-) I will also remove 'imap' from the Cypht installer script, the one I found here: https://www.cypht.org/install/ .

<!-- gh-comment-id:3250444219 --> @jeremiah commented on GitHub (Sep 3, 2025): That is good news. :-) I will also remove 'imap' from the Cypht installer script, the one I found here: https://www.cypht.org/install/ .
Author
Owner

@christer77 commented on GitHub (Sep 4, 2025):

That is good news. :-) I will also remove 'imap' from the Cypht installer script, the one I found here: https://www.cypht.org/install/ .

Hi @jeremiah

Thank you for your PR

<!-- gh-comment-id:3253692451 --> @christer77 commented on GitHub (Sep 4, 2025): > That is good news. :-) I will also remove 'imap' from the Cypht installer script, the one I found here: https://www.cypht.org/install/ . Hi @jeremiah Thank you for your [PR](https://github.com/cypht-org/cypht-website/pull/136)
Author
Owner

@Baraka24 commented on GitHub (Sep 4, 2025):

@jeremiah we left you a comment here https://github.com/cypht-org/cypht-website/pull/136#discussion_r2322210592, please apply changes and we'll merge. Thanks for your contribution.

<!-- gh-comment-id:3253799532 --> @Baraka24 commented on GitHub (Sep 4, 2025): @jeremiah we left you a comment here https://github.com/cypht-org/cypht-website/pull/136#discussion_r2322210592, please apply changes and we'll merge. Thanks for your contribution.
Author
Owner

@jeremiah commented on GitHub (Sep 8, 2025):

Closing post merge.

<!-- gh-comment-id:3266001872 --> @jeremiah commented on GitHub (Sep 8, 2025): Closing post merge.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#689
No description provided.