-
-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISSUE-341: add imap2 plugin #1063
Conversation
I don't mind this plugin being added but it might not be a good long term solution. The package php-imap2 now appears to be unmaintained - the last release was in October 2022 despite there being many issues and pull requests. I created this plugin in February 2023 when it appeared to be active. This hasn't had a lot of testing. The plugin just wraps the library but I didn't do much testing of the library, just that I could connect and download some bounces. There may be edge-cases that are not handled properly. For example "localhost" does not work for the server name, whereas it does work for the php imap extension. A couple of issues were raised on the plugin bramley/phplist-plugin-imap2#2 to detect and report the use of "localhost", and to convert the POP3 port and protocol to the IMAP equivalent (the php-imap2 package supports only the IMAP protocol, which isn't a problem but requires the An alternative approach is to select a php package with an imap API and redevelop the bounce processing to use that instead of the php imap_xxx functions. This page https://php.watch/versions/8.4/imap-unbundled suggests Webklex/php-imap |
Just making sure, did you mean my issue #2 which you've mentioned above ("to detect and report the use of")? My issue was about |
Yes, fair enough. I think for now this will be a reasonable intermediate situation, while we work out other ways. At least it will help with systems that do not have the imap functions in PHP. I think for now, we can merge this and then pick it up for further review |
There are a couple of imap functions used by phplist that the imap2 package doesn't handle correctly. A polyfill method called by I suggest changing the phplist bounce processing to use the php functions |
Description
Add imap2 plugin to default plugin list
Contributor License Agreement
Related Issue
#1061
Screenshots (if appropriate):