You are here

function mimemail_incoming in Mime Mail 7

Same name and namespace in other branches
  1. 5 mimemail.module \mimemail_incoming()
  2. 6 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
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 mimemail.

Code

function mimemail_incoming($message) {
  $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);
}