Make/Model  Device VersionConnection Type
Generic/POP3N/AIP

Description:

POP3 is a simple protocol used to retrieve email. This driver will use the POP3 protocol to download the current number of emails in your inbox, as well as the email headers (Date, Sender, Subject). The primary purpose of this driver is to notify you of the emails in your inbox, it does not actually download the entire message. It driver also has the ability to search the email message for tokens you define that can be used to trigger events in CQC.

POP3 Authentication:

When loading the driver you will be prompted to enter your POP3 username and password. At this time only plaintext authentication is supported. POP3 Secure Authentication/APOP and SSL (i.e. GMAIL) are not supported natively. However, you can run this driver with an SSL proxy like stunnel which has been tested with the driver. For information on how to configure stunnel see below. 

How to Configure Stunnel for POP3/SSL Authentication

Quirks and Limitations:

None known at this time.

Connection Details

The driver connects to your server over an ethernet connection. When you load the driver you will be prompted to enter the server name and port as well as the interval you want the driver to check for new mail. The driver can only connect to a single server/account. If you have several email accounts, you will need to load one driver instance for each.

Date/Time Format

The driver supports custom date/time formats as described in the CML Time Class. When you load the driver you can configure the format you want time displayed in the stringlist fields and LastUpdated field.

Header Format

This prompt allows you to configure how you want the HeaderList stringlist to display email headers. The allowed tokens are below. It is recommended you include either the message id and/or date/time so that list entries are unique. If an email comes in and the line is not unique, the driver will prepend the message id and a colon to the line to force it to be unique.

Custom Fields

When loading the driver you will be prompted to create custom fields, which are fields you would like to create that are updatable via emails. In the text box enter custom field names and their associated type one per line, separated by a comma. The driver supports creation of String, Card, Int, Float, and Boolean.

Custom Field Authentication

When loading the driver, you will also be prompted for a custom field authentication string. If you enter a string here, that string must be sent along with field tokens to update a custom field. If you leave the string blank, no authentication is required for command emails.

Command Email Format

 To update a field via an email, insert the field value between field tokens. Field tokens take the format <Fieldname>Value</Fieldname>. For example, to update a field named "MyBoolean", send an email with <MyBoolean>True</MyBoolean>. If the value is not valid for the type of field, the field will not be updated. Only the first 25 lines of the email are searched.

If you have setup an Authentication String, you will need to include it within an <Auth> token, for the fields to be updated. The format for the <Auth> token is <Auth>AuthString</Auth> and can be anywhere in the body of the same email. Each email is authenticated separately.

Delete Command Emails

If you configure this option, emails with commands/custom field tokens will be deleted after the driver parses them.

Driver Fields

This section lists the fields that the driver makes available, their types, minimum and maximum values, etc...

NameTypeR/WDescription/Limits
HostNameStringRHostname of the POP3 server
HostAddressStringRIP and Port of the POP3 server
UsernameStringR/WUsername used for POP3 authentication
PasswordStringWPassword used for POP3 authentication
MessageCountCardRNumber of emails messages in inbox
LastUpdatedTimeTimeRTime of last update
LastUpdatedStringRDate of last update
LastStatusStringRStatus of last update. Possible values are Success, Connect Error, Authentication Error (USER), Authentication Error (PASS), Status Error, Message Header Error, Connection Timeout, An Unknown Error Occurred
DateListStringListRDate lines in message headers
FromListStringListRFrom lines in message headers
SubjectListStringListRSubject lines in message headers
HeaderListStringListRCustomized message headers
AuthTokenStringR./WAuthentication string fro Command Emails
GetMailBooleanWForce mail download when set to True
DeleteCmdMsgBooleanR/WDelete message with command tokens (Command Emails)
DateFormatStringR/WFormat to display date/times in
HeaderFormatStringR/WFormat to display HeaderList lines in