Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/units/helpers/mailbox_helper.php
Show First 20 Lines • Show All 255 Lines • ▼ Show 20 Line(s) | |||||
$return_path = $esender->ExtractRecipientEmail( $this->headers['from'] ); | $return_path = $esender->ExtractRecipientEmail( $this->headers['from'] ); | ||||
} | } | ||||
} | } | ||||
// Get the sender's name & email | // Get the sender's name & email | ||||
$good['fromemail'] = $esender->ExtractRecipientEmail($this->headers['from']); | $good['fromemail'] = $esender->ExtractRecipientEmail($this->headers['from']); | ||||
$good['fromname'] = $esender->ExtractRecipientName($this->headers['from'], $good['fromemail']); | $good['fromname'] = $esender->ExtractRecipientName($this->headers['from'], $good['fromemail']); | ||||
// Get the list of recipients | // Get the list of recipients. | ||||
if (!$verify_callback[0]->$verify_callback[1]($callback_params)) { | if ( !call_user_func($verify_callback, $callback_params) ) { | ||||
// error: mail is propably spam | // Error: mail is probably spam. | ||||
return false; | return false; | ||||
} | } | ||||
// Handle the subject | // Handle the subject | ||||
$good['subject'] = $this->headers['subject']; | $good['subject'] = $this->headers['subject']; | ||||
// Priorities rock | // Priorities rock | ||||
$good['priority'] = array_key_exists('x-priority', $this->headers) ? (int)$this->headers['x-priority'] : 0; | $good['priority'] = array_key_exists('x-priority', $this->headers) ? (int)$this->headers['x-priority'] : 0; | ||||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | |||||
'MessageType' => $message_type, | 'MessageType' => $message_type, | ||||
'AttachmentCount' => $good['attach'], | 'AttachmentCount' => $good['attach'], | ||||
'MessageId' => $good['emailid'], | 'MessageId' => $good['emailid'], | ||||
'Source' => $message, | 'Source' => $message, | ||||
'Priority' => $good['priority'], | 'Priority' => $good['priority'], | ||||
'Size' => strlen($message), | 'Size' => strlen($message), | ||||
); | ); | ||||
return $process_callback[0]->$process_callback[1]($callback_params, $fields_hash); | return call_user_func($process_callback, $callback_params, $fields_hash); | ||||
} | } | ||||
/** | /** | ||||
* Function that decodes the MIME message and creates the $this->headers and $this->parsedMessage data arrays | * Function that decodes the MIME message and creates the $this->headers and $this->parsedMessage data arrays | ||||
* | * | ||||
* @param string $message | * @param string $message | ||||
* @param bool $include_attachments | * @param bool $include_attachments | ||||
* | * | ||||
▲ Show 20 Lines • Show All 119 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
} | } | ||||
} | } | ||||
$parts['headers'] = $decoded->headers; // headers of next parts overwrite previous part headers | $parts['headers'] = $decoded->headers; // headers of next parts overwrite previous part headers | ||||
} | } | ||||
} | } | ||||
No newline at end of file |