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/28 04:50] – [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:
  
  
-=== Debug ===+=== Debugging ===
  
-You can see the dialogue with the mail server by including ''/debug'' within the value of ''$bounce_mailbox_port'', e.g. +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> <code php>$bounce_mailbox_port = '993/imap/ssl/debug';</code>
Line 65: Line 68:
 ];</code> ];</code>
  
-The plugin will write the dialogue to a file named after the current date, ''log_yyyy-mm-dd.txt'', in the directory identified by the phplist ''$tmpdir'' variable.+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
  
-''[05:30:54] [debug] CA0003 SELECT INBOX +<code>[06:33:10] [debug] [BC29] Connecting to ssl://imap.gmail.com:993... 
-[05:30:55] [debug] S: * FLAGS (\Answered \Flagged \Draft \Deleted \Seen $Forwarded $MDNSent $NotPhishing $Phishing Junk NonJunk) +[06:33:10] [debug] [BC29] S: * OK Gimap ready for requests from 87.115.225.95 h41mb25057261wmp 
-[05:30:55] [debug] S: * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $Forwarded $MDNSent $NotPhishing $Phishing Junk NonJunk \*)Flags permitted. +[06:33:10] [debug] [BC29C: A0001 CAPABILITY 
-[05:30:55] [debug] S: * OK [UIDVALIDITY 605855809] UIDs valid.''+[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>