diff options
| author | Carson Fleming <[email protected]> | 2024-12-31 18:47:28 -0800 |
|---|---|---|
| committer | Carson Fleming <[email protected]> | 2024-12-31 18:47:28 -0800 |
| commit | 389139c1749904477a22644248ba25f46485827e (patch) | |
| tree | e978295357261ee2256ff167c0908cb3a874a0d4 /config.inc.php.dist | |
| parent | 27cfb2476d94f93bbb1839d179f473bf0e5ef9ec (diff) | |
| download | rc-inbox-settings-389139c1749904477a22644248ba25f46485827e.tar.gz | |
skeleton of the final vision
Diffstat (limited to 'config.inc.php.dist')
| -rw-r--r-- | config.inc.php.dist | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config.inc.php.dist b/config.inc.php.dist index 2bbc70b..e9fb3fc 100644 --- a/config.inc.php.dist +++ b/config.inc.php.dist @@ -83,4 +83,16 @@ $config['inbox_settings_keys_query'] = 'SELECT id, fingerprint, comment FROM pgp // (in case the username is an email address) // %k - the key IDs being deleted $config['inbox_settings_delete_keys_query'] = 'DELETE FROM pgp_keys WHERE id IN %k AND username = %u'; + +// The SQL query used add a PGP key to a user's account. +// 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) +// %k - the binary key data blob +// %c - the comment to identify the key +$config['inbox_settings_add_key_query'] = 'INSERT INTO pgp_keys (username, key_data, comment) VALUES (%u, %k, %c)'; ?> |
