summaryrefslogtreecommitdiff
path: root/config.inc.php.dist
diff options
context:
space:
mode:
Diffstat (limited to 'config.inc.php.dist')
-rw-r--r--config.inc.php.dist12
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)';
?>