From 649608f336a2b6810886bc291b31126a48a1bba6 Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Mon, 30 Dec 2024 04:00:35 -0800 Subject: potentially working stub --- config.inc.php.dist | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'config.inc.php.dist') diff --git a/config.inc.php.dist b/config.inc.php.dist index af79ba0..394086b 100644 --- a/config.inc.php.dist +++ b/config.inc.php.dist @@ -62,4 +62,14 @@ $config['inbox_settings_forwarding_addresses_query'] = 'SELECT addr, fwd_addr, a // %sf - whether forwarding is set for this address (boolean) // %sa - the new forwarding address (string) $config['inbox_settings_update_forwarder_query'] = 'UPDATE forwarders SET fwd_addr = %sf, active = %sa WHERE addr = %fa'; + +// The SQL query used to select a user's PGP keys. +// 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_keys_query'] = 'SELECT id, fingerprint, comment FROM pgp_keys WHERE username = %u'; ?> -- cgit v1.2.3