From 63a3dc5fde5a3ceed4f03c19c5015aab19050bee Mon Sep 17 00:00:00 2001 From: till Date: Sat, 20 Mar 2010 14:20:01 +0000 Subject: moved plugins --- .../show_additional_headers.php | 52 ---------------------- 1 file changed, 52 deletions(-) delete mode 100644 plugins/show_additional_headers/show_additional_headers.php (limited to 'plugins/show_additional_headers/show_additional_headers.php') diff --git a/plugins/show_additional_headers/show_additional_headers.php b/plugins/show_additional_headers/show_additional_headers.php deleted file mode 100644 index 1cbe690e9..000000000 --- a/plugins/show_additional_headers/show_additional_headers.php +++ /dev/null @@ -1,52 +0,0 @@ -action == 'show' || $rcmail->action == 'preview') { - $this->add_hook('imap_init', array($this, 'imap_init')); - $this->add_hook('message_headers_output', array($this, 'message_headers')); - } else if ($rcmail->action == '') { - // with enabled_caching we're fetching additional headers before show/preview - $this->add_hook('imap_init', array($this, 'imap_init')); - } - } - - function imap_init($p) - { - $rcmail = rcmail::get_instance(); - if ($add_headers = (array)$rcmail->config->get('show_additional_headers', array())) - $p['fetch_headers'] = trim($p['fetch_headers'].' ' . strtoupper(join(' ', $add_headers))); - - return $p; - } - - function message_headers($p) - { - $rcmail = rcmail::get_instance(); - foreach ((array)$rcmail->config->get('show_additional_headers', array()) as $header) { - $key = strtolower($header); - if ($value = $p['headers']->others[$key]) - $p['output'][$key] = array('title' => $header, 'value' => $value); - } - - return $p; - } -} -- cgit v1.2.3