Mailbox (Simple EventHandler)
Overview
The mailbox EventHandler periodically scans a POP3/IMAP mailbox for new messages.
When a new message (loosely defined as an unread message) arrives a script is
called to handle the event.
Configuration
The listener needs the following parameters:
Parameter |
Description |
class |
com.architech.trigger.rstMailbox |
mailServer |
The hostname and optionally port for the mail
service |
mailUser |
The username to use for authentication |
mailPassword |
The password associated with mailUser |
mailProtocol |
Specify "pop" or "imap" |
mailFolder |
The folder to poll (i.e. INBOX etc..) |
script |
The script to execute for each new message |
scriptEngine |
The scripting language for script |
Script Objects
When your script executes you have the following objects to work with:
folder |
The mail folder |
session |
The mailbox session |
msg |
The new message being handled |
Downloads
Included in base product
See Also
Mailbox EventHandler
|