You are here

public function MailhandlerParser::commands in Mailhandler 6.2

Same name and namespace in other branches
  1. 7.2 plugins/feeds/plugins/MailhandlerParser.class.php \MailhandlerParser::commands()
1 call to MailhandlerParser::commands()
MailhandlerParser::parse in plugins/feeds/plugins/MailhandlerParser.class.php
Implementation of FeedsParser::parse().

File

plugins/feeds/plugins/MailhandlerParser.class.php, line 130
MailhandlerParser class.

Class

MailhandlerParser
Parses an IMAP stream.

Code

public function commands(&$message, $source) {
  $plugins = mailhandler_get_plugins('mailhandler', 'commands');
  foreach ($plugins as $plugin_name => $plugin) {
    if ($class = mailhandler_plugin_load_class('mailhandler', $plugin_name, 'commands', 'handler')) {
      $class
        ->parse($message, $source, $this);
      $class
        ->process($message, $source);
    }
  }
}