diff options
Diffstat (limited to 'config.inc.php.dist')
| -rw-r--r-- | config.inc.php.dist | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/config.inc.php.dist b/config.inc.php.dist new file mode 100644 index 0000000..7e5f055 --- /dev/null +++ b/config.inc.php.dist @@ -0,0 +1,65 @@ +<?php +$config = []; + +// PEAR database DSN for performing the query. By default +// Roundcube DB settings are used. +// Supported replacement variables: +// %h - user's IMAP hostname +// %n - hostname ($_SERVER['SERVER_NAME']) +// %t - hostname without the first part +// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) +// %z - IMAP domain (IMAP hostname without the first part) +$config['inbox_settings_db_dsn'] = ''; + +// Whether we should scrub the "Encryption" tab from the preferences list. +// This may be confusing to some users since this plugin adds additional +// encryption settings in a different place. +$config['inbox_settings_scrub_encryption_preference'] = true; + +// The SQL query used to select whether a user's inbox is encrypted. +// Supported replacement variables: +// %h - user's IMAP hostname +// %u - the username (from the session info) +// %l - the local part of the username +// (in case the username is an email address) +// %d - the domain part of the username +// (in case the username is an email address) +$config['inbox_settings_encryption_enabled_query'] = 'SELECT encrypt FROM users WHERE username = %u'; + +// The SQL query used to update whether a user's inbox is encrypted. +// Supported replacement variables: +// %h - user's IMAP hostname +// %u - the username (from the session info) +// %l - the local part of the username +// (in case the username is an email address) +// %d - the domain part of the username +// (in case the username is an email address) +// %e - whether the inbox should be encrypted (boolean) +$config['inbox_settings_encryption_enabled_query'] = 'UPDATE users SET encrypt = ? WHERE username = %u'; + +// The SQL query used to select a user's forwarding addresses. +// Supported replacement variables: +// %h - user's IMAP hostname +// %u - the username (from the session info) +// %l - the local part of the username +// (in case the username is an email address) +// %d - the domain part of the username +// (in case the username is an email address) +$config['inbox_settings_forwarding_addresses_query'] = 'SELECT addr, fwd_addr, active FROM forwarders WHERE username = %u'; + +// The SQL query used to update a user's forwarding setting for an address. +// Supported replacement variables: +// %h - user's IMAP hostname +// %u - the username (from the session info) +// %l - the local part of the username +// (in case the username is an email address) +// %d - the domain part of the username +// (in case the username is an email address) +// %fa - the email address being forwarded +// (returned as `addr` from the above query) +// %fl - the local part of the forwarding address +// %fd - the domain part of the forwarding address +// %sf - whether forwarding is set for this address (boolean) +// %sa - the new forwarding address (string) +$config['inbox_settings_forwarding_update_query'] = 'UPDATE forwarders SET fwd_addr = %sf, active = %sa WHERE addr = %fa'; +?> |
