This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
reference:lua_monitor_script [2016/02/11 12:06] – created paul | reference:lua_monitor_script [2019/08/27 17:13] (current) – paul | ||
---|---|---|---|
Line 18: | Line 18: | ||
or | or | ||
MonitorIncoming(sender, | MonitorIncoming(sender, | ||
+ | |||
+ | * **recipient_list** is a list of target email addresses for **MonitorOut** and a list of target user names for **MonitorInternal** and **MonitorIncoming**. | ||
| | ||
The functions return a string indicating who the monitored messages are to go to. This can be a single email address, or several email addresses separated by semi-colons (;). If it is ' | The functions return a string indicating who the monitored messages are to go to. This can be a single email address, or several email addresses separated by semi-colons (;). If it is ' | ||
+ | |||
+ | ===Attachments=== | ||
+ | From VPOP3 version 6.17 onwards, these functions will also receive extra parameters | ||
+ | |||
+ | MonitorOut(sender, | ||
+ | |||
+ | MonitorInternal(sender, | ||
+ | |||
+ | MonitorIncoming(sender, | ||
+ | |||
+ | |||
+ | * **size** is the size of the message in bytes | ||
+ | * **attachments** is a table with zero or more of the following entries, referring to the attachments in the message | ||
+ | * MIMESection number - the MIME section that this attachment occurred in | ||
+ | * Name string - the name of the attachment | ||
+ | * MIMEType string - the MIME type of the attachment | ||
+ | * Size number - the size of the attachment | ||
+ | * Type string - the type of attachment (MIME, UUE, BINHEX, MIMEUUE, MIMEBINHEX, TNEF) | ||
+ | * **ToRecipients** is a list of recipients in the To field | ||
+ | * **CcRecipients** is a list of recipients in the Cc field | ||
+ | * **BccRecipients** is a list of recipients the message has been Bcc'd to | ||
+ | * **ClientIPAddress** is the IP address the message was sent from | ||