view doc/variables.txt @ 2097:4e77cb0aff21 HEAD

Added %l, %r and %P variables and mail_log_prefix setting.
author Timo Sirainen <tss@iki.fi>
date Mon, 31 May 2004 21:04:46 +0300
parents
children 1ce02ffc7ec7
line wrap: on
line source

You can use special variables in several places:
 - default_mail_env setting
 - namespace locations
 - static userdb template string
 - LDAP and SQL userdb query strings
 - log prefix for imap/pop3 process

The variables are:

 %u - username
 %n - user part in user@domain, same as %u if there's no domain
 %d - domain part in user@domain, empty if user there's no domain
 %h - home directory
 %p - protocol (IMAP or POP3)
 %P - PID of the current process (login or imap/pop3 process)
 %l - local IP address
 %r - remote IP address

You can apply a modifiers for each variable (eg. %Lp = pop3):

 %L - lowercase
 %U - uppercase
 %E - escape '"', "'" and '\' characters by inserting '\' before them.

You can also limit a width of string by giving the number of max. characters
after the '%' character. For example %1u gives the first character of
username.