MailhandlerAuthenticateDefault.class.php in Mailhandler 6.2
Same filename and directory in other branches
MailhandlerAuthenticateDefault class.
File
plugins/mailhandler/authenticate/MailhandlerAuthenticateDefault.class.phpView source
<?php
/**
 * @file
 * MailhandlerAuthenticateDefault class.
 */
class MailhandlerAuthenticateDefault extends MailhandlerAuthenticate {
  public function authenticate(&$message, $mailbox) {
    list($fromaddress, $fromname) = _mailhandler_get_fromaddress($message['header'], $mailbox);
    $uid = 0;
    if ($from_user = user_load(array(
      'mail' => $fromaddress,
    ))) {
      $uid = $from_user->uid;
    }
    return $uid;
  }
}Classes
| 
            Name | 
                  Description | 
|---|---|
| MailhandlerAuthenticateDefault | @file MailhandlerAuthenticateDefault class. |