meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:imap2 [2025/02/08 11:00] – [Usage] duncancplugin:imap2 [2025/05/29 10:39] (current) – [Installation] duncanc
Line 20: Line 20:
 ===== Installation ===== ===== Installation =====
  
-See the README file on the GitHub page https://github.com/bramley/phplist-plugin-imap2 for how to install the plugin.+Install on the Manage Plugins page (menu Config > Manage Plugins) using the package URL 
 +    https://github.com/bramley/phplist-plugin-imap2/archive/master.zip 
 + 
 +Then enable the Common plugin.
  
 ===== Usage ===== ===== Usage =====
Line 53: Line 56:
  
  
 +=== Debugging ===
 +
 +You can log the dialogue with the mail server by including ''/debug'' within the value of ''$bounce_mailbox_port'', e.g. 
 +
 +<code php>$bounce_mailbox_port = '993/imap/ssl/debug';</code>
 +
 +and by setting a variable in config.php
 +
 +<code php>$log_options = [
 +    'threshold' => 'DEBUG',
 +];</code>
 +
 +Now the plugin will write the dialogue to a file in the phplist temporary directory, identfied by the ''$tmpdir'' variable in config.php. The file will be named for the current day, ''log_yyyy-mm-dd.txt''
 +
 +Alternatively you can specify a particular directory for the log file. The directory must be writeable by the web server process. 
 +<code php>$log_options = [
 +    'threshold' => 'DEBUG',
 +    'dir' => '/path/to/directory',
 +];</code>
  
 +The dialogue will be logged similar to this
  
 +<code>[06:33:10] [debug] [BC29] Connecting to ssl://imap.gmail.com:993...
 +[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
 +</code>