diff --git a/config.inc.php.dist b/config.inc.php.dist new file mode 100644 index 0000000..7d6d101 --- /dev/null +++ b/config.inc.php.dist @@ -0,0 +1,32 @@ +rules['to']) ? $this->rules['to'] : ''; + + if (strpos($rule, 'o') !== false) + $compose_subject_value_default = 'always'; + else if (strpos($rule, 'd') !== false) + $compose_subject_value_default = 'domain'; + else if (strpos($rule, 'e') !== false) + $compose_subject_value_default = 'exact'; + else + $compose_subject_value_default = 'never'; + $compose_subject = new html_select(array('id' => self::PREFERENCE_COMPOSE_SUBJECT, 'name' => self::PREFERENCE_COMPOSE_SUBJECT)); $compose_subject->add(self::get_text($rcmail, 'preference_compose_subject_never'), 'never'); $compose_subject->add(self::get_text($rcmail, 'preference_compose_subject_exact'), 'exact'); $compose_subject->add(self::get_text($rcmail, 'preference_compose_subject_domain'), 'domain'); $compose_subject->add(self::get_text($rcmail, 'preference_compose_subject_always'), 'always'); - $compose_subject_value = self::get_preference($rcmail, self::PREFERENCE_COMPOSE_SUBJECT, 'never'); + $compose_subject_value = self::get_preference($rcmail, self::PREFERENCE_COMPOSE_SUBJECT, $compose_subject_value_default); $params['blocks'] = array( 'compose' => array(