Mercurial > dovecot > original-hg > dovecot-1.2
view doc/variables.txt @ 2797:322b580e0eb4 HEAD
Changed %p (protocol) -> %s (service). Also changed %P (pid) -> %p.
Hopefully people weren't using these much yet :)
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 21 Oct 2004 02:34:34 +0300 |
parents | 1ce02ffc7ec7 |
children | 77ad773054dd |
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 %s - service (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 take a substring of the variable by giving optional offset followed by '.' and width after the '%' character. For example %2u gives first two characters of the username. %2.1u gives third character of the username. If offset points outside the value, empty string is returned.