You are here

class MailhandlerAuthenticateDefault in Mailhandler 6.2

Same name and namespace in other branches
  1. 7.2 plugins/mailhandler/authenticate/MailhandlerAuthenticateDefault.class.php \MailhandlerAuthenticateDefault

@file MailhandlerAuthenticateDefault class.

Hierarchy

Expanded class hierarchy of MailhandlerAuthenticateDefault

3 string references to 'MailhandlerAuthenticateDefault'
MailhandlerAuthenticateDefault.inc in plugins/mailhandler/authenticate/MailhandlerAuthenticateDefault.inc
MailhandlerParser::configDefaults in plugins/feeds/plugins/MailhandlerParser.class.php
Override parent::configDefaults().
mailhandler_default_feeds_importer_default in modules/mailhandler_default/mailhandler_default.feeds_importer_default.inc
Implementation of hook_feeds_importer_default().

File

plugins/mailhandler/authenticate/MailhandlerAuthenticateDefault.class.php, line 7
MailhandlerAuthenticateDefault class.

View source
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;
  }

}

Members