Fix additional_message_headers plugin compatibility with Mail_Mime >= 1.9 (#1490657)
| | |
| | | - Fix bug where Archive/Junk buttons were not active after page jump with select=all mode (#1490647) |
| | | - Fix bug in long recipients list parsing for cases where recipient name contained @-char (#1490653) |
| | | - Plugin API: Added addressbook_export hook |
| | | - Fix additional_message_headers plugin compatibility with Mail_Mime >= 1.9 (#1490657) |
| | | |
| | | RELEASE 1.2-beta |
| | | ---------------- |
| | |
| | | { |
| | | $this->load_config(); |
| | | |
| | | $headers = $args['message']->headers(); |
| | | $rcube = rcube::get_instance(); |
| | | $rcube = rcube::get_instance(); |
| | | |
| | | // additional email headers |
| | | $additional_headers = $rcube->config->get('additional_message_headers', array()); |
| | | foreach ((array)$additional_headers as $header => $value) { |
| | | if (null === $value) { |
| | | unset($headers[$header]); |
| | | } |
| | | else { |
| | | $headers[$header] = $value; |
| | | } |
| | | } |
| | | |
| | | $args['message']->_headers = array(); |
| | | $args['message']->headers($headers); |
| | | if (!empty($additional_headers)) { |
| | | $args['message']->headers($additional_headers, true); |
| | | } |
| | | |
| | | return $args; |
| | | } |
| | |
| | | "type": "roundcube-plugin", |
| | | "description": "Very simple plugin which will add additional headers to or remove them from outgoing messages.", |
| | | "license": "GPLv2", |
| | | "version": "1.2.0", |
| | | "version": "1.2.1", |
| | | "authors": [ |
| | | { |
| | | "name": "Ziba Scott", |