]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: mail-user: Add "%{hostname}" variable expansion.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 5 Sep 2018 19:24:15 +0000 (21:24 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Wed, 14 Nov 2018 12:26:50 +0000 (14:26 +0200)
src/lib-storage/mail-user.c

index a15ed353ff97f03359fd939aac6c38a15518d4c8..bcfcc5d4c9f102c37af2c2175ab2fc1e148992d5 100644 (file)
@@ -311,6 +311,7 @@ mail_user_var_expand_table(struct mail_user *user)
                { '\0', auth_user, "auth_user" },
                { '\0', auth_username, "auth_username" },
                { '\0', auth_domain, "auth_domain" },
+               { '\0', user->set->hostname, "hostname" },
                /* NOTE: keep this synced with imap-hibernate's
                   imap_client_var_expand_table() */
                { '\0', NULL, NULL }