class CRM_Mailing_MailStore_Maildir extends CRM_Mailing_MailStore

Class CRM_Mailing_MailStore_Maildir

Properties

$_debug from CRM_Mailing_MailStore

Methods

static object
getStore(string $name = NULL)

Return the proper mail store implementation, based on config settings.

array
allMails()

Return all emails in the mail store.

expunge()

Expunge the messages marked for deletion; stub function to be redefined by IMAP store.

array
fetchNext(int $count)

Return the next X messages from the mail store.

string
maildir(string $name)

Point to (and create if needed) a local Maildir for storing retrieved mail

__construct(string $dir)

Connect to the supplied dir and make sure the two mail dirs exist.

markIgnored(int $file)

Fetch the specified message to the local ignore folder.

markProcessed(int $file)

Fetch the specified message to the local processed folder.

Details

in CRM_Mailing_MailStore at line 47
static object getStore(string $name = NULL)

Return the proper mail store implementation, based on config settings.

Parameters

string $name Name of the settings set from civimail_mail_settings to use (null for default).

Return Value

object mail store implementation for processing CiviMail-bound emails

Exceptions

Exception

in CRM_Mailing_MailStore at line 90
array allMails()

Return all emails in the mail store.

Return Value

array array of ezcMail objects

in CRM_Mailing_MailStore at line 97
expunge()

Expunge the messages marked for deletion; stub function to be redefined by IMAP store.

at line 74
array fetchNext(int $count)

Return the next X messages from the mail store.

FIXME: in CiviCRM 2.2 this always returns all the emails

Parameters

int $count Number of messages to fetch (0 to fetch all).

Return Value

array array of ezcMail objects

in CRM_Mailing_MailStore at line 152
string maildir(string $name)

Point to (and create if needed) a local Maildir for storing retrieved mail

Parameters

string $name Name of the Maildir.

Return Value

string path to the Maildir's cur directory

Exceptions

Exception

at line 47
CRM_Mailing_MailStore_Maildir __construct(string $dir)

Connect to the supplied dir and make sure the two mail dirs exist.

Parameters

string $dir Dir to operate upon.

Return Value

CRM_Mailing_MailStore_Maildir

at line 113
markIgnored(int $file)

Fetch the specified message to the local ignore folder.

Parameters

int $file File location of the message to fetch.

Exceptions

Exception

at line 131
markProcessed(int $file)

Fetch the specified message to the local processed folder.

Parameters

int $file File location of the message to fetch.

Exceptions

Exception