TYPO3
7.6
|
Public Member Functions | |
__construct ($recipient, array $whitelist=array()) | |
setRecipient ($recipient) | |
getRecipient () | |
setWhitelist (array $whitelist) | |
getWhitelist () | |
beforeSendPerformed (Swift_Events_SendEvent $evt) | |
sendPerformed (Swift_Events_SendEvent $evt) | |
Protected Member Functions | |
_isWhitelisted ($recipient) | |
Private Member Functions | |
_filterHeaderSet (Swift_Mime_HeaderSet $headerSet, $type) | |
_filterNameAddresses (array $recipients) | |
_restoreMessage (Swift_Mime_Message $message) | |
Private Attributes | |
$_recipient | |
$_whitelist = array() | |
Redirects all email to a single recipient.
Definition at line 16 of file RedirectingPlugin.php.
__construct | ( | $recipient, | |
array | $whitelist = array() |
||
) |
Create a new RedirectingPlugin.
mixed | $recipient | |
array | $whitelist |
Definition at line 38 of file RedirectingPlugin.php.
|
private |
Filter header set against a whitelist of regular expressions.
Swift_Mime_HeaderSet | $headerSet | |
string | $type |
Definition at line 132 of file RedirectingPlugin.php.
References _filterNameAddresses(), and Swift_Mime_HeaderSet\getAll().
Referenced by beforeSendPerformed().
|
private |
Filtered list of addresses => name pairs.
array | $recipients |
Definition at line 146 of file RedirectingPlugin.php.
References _isWhitelisted().
Referenced by _filterHeaderSet().
|
protected |
Matches address against whitelist of regular expressions.
$recipient |
Definition at line 166 of file RedirectingPlugin.php.
Referenced by _filterNameAddresses().
|
private |
Definition at line 191 of file RedirectingPlugin.php.
References Swift_Mime_MimeEntity\getHeaders(), Swift_Mime_Message\setBcc(), Swift_Mime_Message\setCc(), and Swift_Mime_Message\setTo().
Referenced by sendPerformed().
beforeSendPerformed | ( | Swift_Events_SendEvent | $evt | ) |
Invoked immediately before the Message is sent.
Swift_Events_SendEvent | $evt |
Implements Swift_Events_SendListener.
Definition at line 89 of file RedirectingPlugin.php.
References _filterHeaderSet(), and Swift_Events_SendEvent\getMessage().
getRecipient | ( | ) |
Get the recipient of all messages.
Definition at line 59 of file RedirectingPlugin.php.
References $_recipient.
getWhitelist | ( | ) |
Get the whitelist.
Definition at line 79 of file RedirectingPlugin.php.
References $_whitelist.
sendPerformed | ( | Swift_Events_SendEvent | $evt | ) |
Invoked immediately after the Message is sent.
Swift_Events_SendEvent | $evt |
Implements Swift_Events_SendListener.
Definition at line 186 of file RedirectingPlugin.php.
References _restoreMessage(), and Swift_Events_SendEvent\getMessage().
setRecipient | ( | $recipient | ) |
Set the recipient of all messages.
mixed | $recipient |
Definition at line 49 of file RedirectingPlugin.php.
setWhitelist | ( | array | $whitelist | ) |
Set a list of regular expressions to whitelist certain recipients.
array | $whitelist |
Definition at line 69 of file RedirectingPlugin.php.
|
private |
Definition at line 23 of file RedirectingPlugin.php.
Referenced by getRecipient().
|
private |
Definition at line 30 of file RedirectingPlugin.php.
Referenced by getWhitelist().