Class Inbox

A class for managing the inbox.

Constructors

Inbox()

Initializes a new instance of the Inbox class.

Declaration

Inbox

Methods

addSmtpMail(String,String,Integer)

Inserts an SMTP formatted email into Service's inbox, which then will be imported when ejournalCron runs.

Declaration

Integer addSmtpMail(String smtpMail, String uidl, Integer filterId)

Parameters

Type Name Description
String smtpMail A string with an SMTP formatted mail. Must conform to the SMTP standard.
String uidl The UIDL for this email. Can be anything, but it has to be unique for each email
Integer filterId The ID of the mailbox that this mail will be imported under.

Returns

Type Description
Integer The ID of the inserted email.