public function MailhandlerParser::commands in Mailhandler 7.2
Same name and namespace in other branches
- 6.2 plugins/feeds/plugins/MailhandlerParser.class.php \MailhandlerParser::commands()
Parse and apply 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 125 - 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);
}
}
}