You are here

function mimemail_incoming in Mime Mail 6

Same name and namespace in other branches
  1. 5 mimemail.module \mimemail_incoming()
  2. 7 includes/mimemail.incoming.inc \mimemail_incoming()

Parses an externally received message.

Parameters

$message: The message to parse.

1 call to mimemail_incoming()
mimemail_post in includes/mimemail.incoming.inc
Receive messages POSTed from an external source.
3 string references to 'mimemail_incoming'
mimemail_admin_settings in includes/mimemail.admin.inc
Module configuration form.
mimemail_incoming_access in ./mimemail.module
Access callback to process incoming messages.
mimemail_uninstall in ./mimemail.install
Implements hook_uninstall().

File

includes/mimemail.incoming.inc, line 43
Functions that handle inbound messages to Mime Mail.

Code

function mimemail_incoming($message) {
  require_once dirname(__FILE__) . '/mimemail.inc';
  $mail = mimemail_parse($message);
  foreach (module_implements('mimemail_incoming_alter') as $module) {
    call_user_func_array($module . '_mimemail_incoming_alter', $mail);
  }
  module_invoke_all('mimemail_incoming', $mail);
}