public function MailhandlerMultipleEmailAuthenticate::authenticate in Mailhandler 7.2
Same name and namespace in other branches
- 6.2 modules/mailhandler_multiple_email/plugins/mailhandler/authenticate/MailhandlerMultipleEmailAuthenticate.class.php \MailhandlerMultipleEmailAuthenticate::authenticate()
Implements authenticate().
Overrides MailhandlerAuthenticate::authenticate
File
- modules/
mailhandler_multiple_email/ plugins/ mailhandler/ authenticate/ MailhandlerMultipleEmailAuthenticate.class.php, line 15 - MailhandlerMultipleEmailAuthenticate class.
Class
- MailhandlerMultipleEmailAuthenticate
- Integrates with Multiple Email module.
Code
public function authenticate(&$message, $mailbox) {
list($fromaddress, ) = _mailhandler_get_fromaddress($message['header'], $mailbox);
$uid = 0;
if ($address = multiple_email_find_address($fromaddress)) {
$uid = $address->uid;
}
return $uid;
}