From 48e9c14ebded89d858c8be0333f77f77a81b0877 Mon Sep 17 00:00:00 2001 From: thomascube Date: Sat, 31 Mar 2012 12:25:48 +0000 Subject: Move plugins repository into roundcubemail root folder; svn:externals are not defined anymore --- .../additional_message_headers.php | 43 +++++++++++++++++++ .../additional_message_headers/config.inc.php.dist | 14 +++++++ plugins/additional_message_headers/package.xml | 48 ++++++++++++++++++++++ 3 files changed, 105 insertions(+) create mode 100644 plugins/additional_message_headers/additional_message_headers.php create mode 100644 plugins/additional_message_headers/config.inc.php.dist create mode 100644 plugins/additional_message_headers/package.xml (limited to 'plugins/additional_message_headers') diff --git a/plugins/additional_message_headers/additional_message_headers.php b/plugins/additional_message_headers/additional_message_headers.php new file mode 100644 index 000000000..80c58d58b --- /dev/null +++ b/plugins/additional_message_headers/additional_message_headers.php @@ -0,0 +1,43 @@ +add_hook('message_outgoing_headers', array($this, 'message_headers')); + } + + function message_headers($args) + { + $this->load_config(); + + // additional email headers + $additional_headers = rcmail::get_instance()->config->get('additional_message_headers',array()); + foreach($additional_headers as $header=>$value){ + if (null === $value) { + unset($args['headers'][$header]); + } else { + $args['headers'][$header] = $value; + } + } + + return $args; + } +} + +?> diff --git a/plugins/additional_message_headers/config.inc.php.dist b/plugins/additional_message_headers/config.inc.php.dist new file mode 100644 index 000000000..83ccd869c --- /dev/null +++ b/plugins/additional_message_headers/config.inc.php.dist @@ -0,0 +1,14 @@ + diff --git a/plugins/additional_message_headers/package.xml b/plugins/additional_message_headers/package.xml new file mode 100644 index 000000000..73c24fba7 --- /dev/null +++ b/plugins/additional_message_headers/package.xml @@ -0,0 +1,48 @@ + + + additional_message_headers + pear.roundcube.net + Additional message headers for Roundcube + Very simple plugin which will add additional headers to or remove them from outgoing messages. + + Ziba Scott + ziba + email@example.org + yes + + 2010-01-16 + + + 1.1.0 + 1.1.0 + + + stable + stable + + GNU GPL v2 + - + + + + + + + + + + + + + 5.2.1 + + + 1.7.0 + + + + + -- cgit v1.2.3