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/05/29 10:22] – [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 66: Line 69:
  
 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'' 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... <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] S: * OK Gimap ready for requests from 87.115.225.95 h41mb25057261wmp