MailboxBehaviour Class

This class hooks into the mailbox processing in FTGate. If a derived class MailboxExtension exists in the assembly it will be called by default for any mailbox that does not have an explicit class assigned to it.

using System;
using System.Collections.Generic;
using System.Text;
using FTGate.Framework;


public class MailboxExtension : MailboxBehaviour
{
}

Mailbox specific extensions

In order to simplify customization of mailbox handling, you can also create a class of your own name and specify that in the mailbox options. This allows you to only run the scripts for specific mailboxes. For example:

using System;
using System.Collections.Generic;
using System.Text;
using FTGate.Framework;
public class MyMailbox : MailboxBehaviour
{
}

The MyMailbox class would then be set in the mailbox options for a specific mailbox.

It is permitted to have a global “Mailbox” class for all the mailboxes, with some mailboxes using a different, specific, mailbox class.

Member Objects

Mailbox – a reference to the mailbox information

Member functions

public ProcessMessageReturnType OnProcessMessage( MailMessage message)

This method is called when a new message arrives in a mailbox.

public ProcessMessageReturnType OnProcessRule(string ruleName, MailMessage message)

This method is called in a mailbox rule is executed with the action of running the .NET extensions.

public AuthenticationState OnAuthenticate(string password)
This method is used to authenticate a mailbox.