PHP Class IMP_Mbox_Import, horde

Author: Michael Slusarz ([email protected])
Datei anzeigen Open project: horde/horde

Protected Properties

Property Type Description
$_import array Temporary data.
$_mbox IMP_Mailbox Import mailbox.

Public Methods

Method Description
import ( string $mbox, string $form_name ) : string Import a MBOX file into a mailbox.

Protected Methods

Method Description
_import ( string $fname, string $type ) : mixed Imports messages from a mbox (see RFC 4155) -or- a message source (eml) file.
_importHelper ( array $msg, integer $buffer = false ) Helper for _import().

Method Details

_import() protected method

Imports messages from a mbox (see RFC 4155) -or- a message source (eml) file.
protected _import ( string $fname, string $type ) : mixed
$fname string Filename containing the message data.
$type string The MIME type of the message data.
return mixed False (boolean) on fail or the number of messages imported (integer) on success.

_importHelper() protected method

Helper for _import().
protected _importHelper ( array $msg, integer $buffer = false )
$msg array Message data.
$buffer integer Buffer messages before sending?

import() public method

Import a MBOX file into a mailbox.
public import ( string $mbox, string $form_name ) : string
$mbox string The mailbox name to import into (UTF-8).
$form_name string The form field name that contains the MBOX data.
return string Notification message.

Property Details

$_import protected_oe property

Temporary data.
protected array $_import
return array

$_mbox protected_oe property

Import mailbox.
protected IMP_Mailbox $_mbox
return IMP_Mailbox