Zend\Mail\Storage\Maildir
Synopsis
class Maildir
extends AbstractStorage
{
- // members
- protected string $messageClass;
- protected array $files;
- protected array $knownFlags;
- // Inherited members from AbstractStorage
- protected array $has;
- protected integer $iterationPos;
- protected null|int $iterationMax;
- protected string $messageClass;
- // methods
- public int countMessages()
- protected string|array _getFileData()
- public int|array getSize()
- public File getMessage()
- public void getRawHeader()
- public void getRawContent()
- public void __construct()
- protected bool _isMaildir()
- protected void _openMaildir()
- protected void _getMaildirFiles()
- public void close()
- public bool noop()
- public void removeMessage()
- public array|string getUniqueId()
- public int getNumberByUniqueId()
- // Inherited methods from AbstractStorage
- public bool __get()
- public array getCapabilities()
- public abstract int countMessages()
- public abstract int|array getSize()
- public abstract Message getMessage()
- public abstract string getRawHeader()
- public abstract string getRawContent()
- public abstract void __construct()
- public void __destruct()
- public abstract void close()
- public abstract void noop()
- public abstract void removeMessage()
- public abstract array|string getUniqueId()
- public abstract int getNumberByUniqueId()
- public int count()
- public bool offsetExists()
- public Message offsetGet()
- public void offsetSet()
- public bool offsetUnset()
- public void rewind()
- public Message current()
- public int key()
- public void next()
- public bool valid()
- public void seek()
Hierarchy
Extends
Extended by
Tasks
Line | Task |
---|---|
136 | that's ugly, would be better to let the message class decide |
159 | implement |
189 | implement |
Members
protected
- $files
—
array
data of found message files in maildir dir - $has
—
array
class capabilities with default values - $iterationMax
—
Zend\Mail\Storage\null|int
maximum iteration position (= message count) - $iterationPos
—
int
current iteration position - $knownFlags
—
array
known flag chars in filenames - $messageClass
—
string
used message class, change it in an extended class to extend the returned message class - $messageClass
—
string
used message class, change it in an extended class to extend the returned message class
Methods
protected
- _getFileData() — Get one or all fields from file structure. Also checks if message is valid
- _getMaildirFiles() — find all files in opened dir handle and add to maildir files
- _isMaildir() — check if a given dir is a valid maildir
- _openMaildir() — open given dir as current maildir
public
- __construct() — Create instance with parameters Supported parameters are: - dirname dirname of mbox file
- close() — Close resource for mail lib. If you need to control, when the resource is closed. Otherwise the destructor would call this.
- countMessages() — Count messages all messages in current box
- getMessage() — Fetch a message
- getNumberByUniqueId() — get a message number from a unique id
- getRawContent()
- getRawHeader()
- getSize() — Get a list of messages with number and size
- getUniqueId() — get unique id for one or all messages
- noop() — Waste some CPU cycles doing nothing.
- removeMessage() — stub for not supported message deletion
Inherited from Zend\Mail\Storage\AbstractStorage
public
- __get() — Getter for has-properties. The standard has properties are: hasFolder, hasUniqueid, hasDelete, hasCreate, hasTop
- close() — Close resource for mail lib. If you need to control, when the resource is closed. Otherwise the destructor would call this.
- count() — Countable::count()
- countMessages() — Count messages messages in current box/folder
- current() — Iterator::current()
- getCapabilities() — Get a full list of features supported by the specific mail lib and the server
- getMessage() — Get a message with headers and body
- getNumberByUniqueId() — get a message number from a unique id
- getRawContent() — Get raw content of message or part
- getRawHeader() — Get raw header of message or part
- getSize() — Get a list of messages with number and size
- getUniqueId() — get unique id for one or all messages
- key() — Iterator::key()
- next() — Iterator::next()
- noop() — Keep the resource alive.
- offsetExists() — ArrayAccess::offsetExists()
- offsetGet() — ArrayAccess::offsetGet()
- offsetSet() — ArrayAccess::offsetSet()
- offsetUnset() — ArrayAccess::offsetUnset()
- removeMessage() — delete a message from current box/folder
- rewind() — Iterator::rewind()
- seek() — SeekableIterator::seek()
- valid() — Iterator::valid()