IMP_Mbox_Import
in package
Method to import MBOX data into a mailbox.
Tags
Table of Contents
Properties
- $_import : array<string|int, mixed>
- Temporary data.
- $_mbox : IMP_Mailbox
- Import mailbox.
Methods
- import() : string
- Import a MBOX file into a mailbox.
- _import() : mixed
- Imports messages from a mbox (see RFC 4155) -or- a message source (eml) file.
- _importHelper() : mixed
- Helper for _import().
Properties
$_import
Temporary data.
protected
array<string|int, mixed>
$_import
$_mbox
Import mailbox.
protected
IMP_Mailbox
$_mbox
Methods
import()
Import a MBOX file into a mailbox.
public
import(string $mbox, string $form_name) : string
Parameters
- $mbox : string
-
The mailbox name to import into (UTF-8).
- $form_name : string
-
The form field name that contains the MBOX data.
Tags
Return values
string —Notification message.
_import()
Imports messages from a mbox (see RFC 4155) -or- a message source (eml) file.
protected
_import(string $fname, string $type) : mixed
Parameters
- $fname : string
-
Filename containing the message data.
- $type : string
-
The MIME type of the message data.
Tags
Return values
mixed —False (boolean) on fail or the number of messages imported (integer) on success.
_importHelper()
Helper for _import().
protected
_importHelper(array<string|int, mixed> $msg[, int $buffer = false ]) : mixed
Parameters
- $msg : array<string|int, mixed>
-
Message data.
- $buffer : int = false
-
Buffer messages before sending?