diff options
| author | Carson Fleming <[email protected]> | 2024-11-21 02:48:48 -0500 |
|---|---|---|
| committer | Carson Fleming <[email protected]> | 2024-11-21 02:48:48 -0500 |
| commit | 0cbcced7c36ee95a9c369579b1bf2b9b3e31a768 (patch) | |
| tree | abda60dd1ada4af527b4a7937d78a0feeee18687 /config.inc.php.dist | |
| download | rc-identity-addresses-0cbcced7c36ee95a9c369579b1bf2b9b3e31a768.tar.gz | |
spitballing
Diffstat (limited to 'config.inc.php.dist')
| -rw-r--r-- | config.inc.php.dist | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/config.inc.php.dist b/config.inc.php.dist new file mode 100644 index 0000000..2759a34 --- /dev/null +++ b/config.inc.php.dist @@ -0,0 +1,26 @@ +<?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['identity_addresses_db_dsn'] = ''; + +// The SQL query used to select a user's supported identity addresses. +// Supported replacement variables: +// %h - user's IMAP hostname +// %n - hostname ($_SERVER['SERVER_NAME']) +// %t - hostname without the first part +// %z - IMAP domain (IMAP hostname without the first part) +// %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['identity_addresses_query'] = 'SELECT address FROM users WHERE owner = %u'; +?> |
