summaryrefslogtreecommitdiff
path: root/program/include/rcmail.php
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index dbf56e55f..e85d82cde 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -980,6 +980,19 @@ class rcmail extends rcube
/**
+ * Set environment variables for specified config options
+ */
+ public function set_env_config($options)
+ {
+ foreach ((array) $options as $option) {
+ if ($this->config->get($option)) {
+ $this->output->set_env($option, true);
+ }
+ }
+ }
+
+
+ /**
* Returns RFC2822 formatted current date in user's timezone
*
* @return string Date