This documentation is for Dovecot v1.x, see wiki2 for v2.x documentation.
Differences between revisions 1 and 2
Revision 1 as of 2004-08-28 19:33:59
Size: 1169
Editor: ip213-185-36-189
Comment:
Revision 2 as of 2004-10-20 23:35:38
Size: 1168
Editor: ip213-185-36-189
Comment:
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
 * %p - protocol (IMAP or POP3) (1.0-tests only)
 * %P - PID of the current process (login or imap/pop3 process) (1.0-tests only)
 * %s - service (IMAP or POP3) (1.0-tests only)
 * %p - PID of the current process (login or imap/pop3 process) (1.0-tests only)

Variables

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) (1.0-tests only)
  • %p - PID of the current process (login or imap/pop3 process) (1.0-tests only)
  • %l - local IP address (1.0-tests only)
  • %r - remote IP address (1.0-tests only)

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

  • %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. (The width is only in 1.0-tests)

None: Variables (last edited 2010-06-02 15:02:14 by TimoSirainen)