meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:imap2 [2024/05/20 00:00] – external edit 127.0.0.1 | plugin:imap2 [2025/05/29 10:39] (current) – [Installation] duncanc | ||
---|---|---|---|
Line 9: | Line 9: | ||
===== Purpose ===== | ===== Purpose ===== | ||
- | This plugin uses the javanile/ | + | This plugin uses the javanile/ |
- | If your php configuration already includes the imap extension then you do not need this plugin. | + | Those functions are provided by the IMAP extension, but that extension has been removed in php version 8.4. This plugin provides an alternative implementation that will allow phplist to continue processing bounces. |
+ | |||
+ | This plugin can also be used with php versions prior to 8.4 if the hosting provider does not provide the IMAP extension. | ||
+ | |||
+ | If your php configuration already includes the IMAP extension then you do not need this plugin. The plugin can be installed but will not have any effect. | ||
===== Installation ===== | ===== Installation ===== | ||
- | See the README file on the GitHub | + | Install |
+ | | ||
+ | |||
+ | Then enable | ||
===== Usage ===== | ===== Usage ===== | ||
- | The php-imap2 package supports only the IMAP protocol, not the POP3 protocol. | + | === Use of localhost === |
+ | Using '' | ||
+ | |||
+ | <code php> | ||
+ | use something like | ||
+ | <code php> | ||
+ | |||
+ | === Use IMAP instead of POP3 === | ||
+ | The php-imap2 package supports only the IMAP protocol, not the POP3 protocol. | ||
+ | |||
+ | The plugin | ||
+ | |||
+ | For example, if you currently access | ||
+ | |||
+ | <code php> | ||
+ | |||
+ | That needs to be changed to use IMAP on port 143 | ||
+ | |||
+ | <code php> | ||
+ | |||
+ | Or if you currently access | ||
+ | |||
+ | <code php> | ||
+ | |||
+ | That needs to be changed to use IMAP on port 993 | ||
+ | |||
+ | <code php> | ||
+ | |||
+ | |||
+ | === Debugging === | ||
+ | |||
+ | You can log the dialogue with the mail server by including ''/ | ||
+ | |||
+ | < | ||
+ | |||
+ | and by setting a variable in config.php | ||
- | As an example to access the mailbox on port 143 | + | <code php> |
+ | ' | ||
+ | ];</ | ||
- | <code php>$bounce_mailbox_port = " | + | Now the plugin will write the dialogue to a file in the phplist temporary directory, identfied by the '' |
- | or on port 993 over ssl | + | Alternatively you can specify a particular directory for the log file. The directory must be writeable by the web server process. |
+ | <code php> | ||
+ | ' | ||
+ | ' | ||
+ | ];</ | ||
- | <code php> | + | The dialogue will be logged similar to this |
+ | < | ||
+ | [06:33:10] [debug] [BC29] S: * OK Gimap ready for requests from 87.115.225.95 h41mb25057261wmp | ||
+ | [06:33:10] [debug] [BC29] C: A0001 CAPABILITY | ||
+ | [06:33:10] [debug] [BC29] S: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER | ||
+ | </ | ||