From 389139c1749904477a22644248ba25f46485827e Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Tue, 31 Dec 2024 18:47:28 -0800 Subject: skeleton of the final vision --- config.inc.php.dist | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'config.inc.php.dist') 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)'; ?> -- cgit v1.2.3