Changeset 469f84f in github
- Timestamp:
- Nov 19, 2009 2:42:27 PM (4 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- bc6ac4d
- Parents:
- b1d3a4e1
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
plugins/additional_message_headers/additional_message_headers.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r90b1cb2 r469f84f 2 2 =========================== 3 3 4 - additional_message_headers: allow unsetting headers, support plugin's config file (#1486268) 4 5 - Fix displaying of hidden directories in skins list (#1486301) 5 6 - Fix open_basedir restriction error when reading skins list (#1486304) -
plugins/additional_message_headers/additional_message_headers.php
rcc97ea0 r469f84f 4 4 * Additional Message Headers 5 5 * 6 * Very simple plugin which will read additional headers for outgoing messages from the config file.6 * Very simple plugin which will add additional headers to or remove them from outgoing messages. 7 7 * 8 * Enable the plugin in config/main.inc.php and add your desired headers. 9 * 10 * @version 1.0 8 * @version 1.1 11 9 * @author Ziba Scott 12 10 * @website http://roundcube.net 13 *14 * Example:15 11 * 16 * $rcmail_config['additional_message_headers']['X-Remote-Browser'] = $_SERVER['HTTP_USER_AGENT']; 17 * $rcmail_config['additional_message_headers']['X-Originating-IP'] = $_SERVER['REMOTE_ADDR']; 18 * $rcmail_config['additional_message_headers']['X-RoundCube-Server'] = $_SERVER['SERVER_ADDR']; 19 * if( isset( $_SERVER['MACHINE_NAME'] )) { 20 * $rcmail_config['additional_message_headers']['X-RoundCube-Server'] .= ' (' . $_SERVER['MACHINE_NAME'] . ')'; 21 * } 12 * See config.inc.php.disc 22 13 */ 23 14 class additional_message_headers extends rcube_plugin … … 30 21 } 31 22 32 function message_headers($args){ 23 function message_headers($args) 24 { 25 $this->load_config(); 33 26 34 27 // additional email headers 35 28 $additional_headers = rcmail::get_instance()->config->get('additional_message_headers',array()); 36 29 foreach($additional_headers as $header=>$value){ 37 $args['headers'][$header] = $value; 30 if (null === $value) { 31 unset($args['headers'][$header]); 32 } else { 33 $args['headers'][$header] = $value; 34 } 38 35 } 39 36 … … 41 38 } 42 39 } 40 41 ?>
Note: See TracChangeset
for help on using the changeset viewer.
