public function MailhandlerCommandsExtendedHeaders::getMappingSources in Mailhandler 7.2
Same name and namespace in other branches
- 6.2 modules/mailhandler_extended/plugins/mailhandler/commands/MailhandlerCommandsExtendedHeaders.class.php \MailhandlerCommandsExtendedHeaders::getMappingSources()
Implements getMappingSources().
Overrides MailhandlerCommandsHeaders::getMappingSources
File
- modules/
mailhandler_extended/ plugins/ mailhandler/ commands/ MailhandlerCommandsExtendedHeaders.class.php, line 27 - MailhandlerCommandsExtendedHeaders class.
Class
- MailhandlerCommandsExtendedHeaders
- Provides extended headers from messages.
Code
public function getMappingSources($config) {
$sources = array();
$extended_headers = explode("\n", $config['extended_headers']);
foreach ($extended_headers as $header) {
$header = trim($header);
$sources[$header] = array(
'name' => $header,
'description' => $header . ' (extended header)',
);
}
return $sources;
}