diff dovecot-example.conf @ 813:493bc8da9e80 HEAD

default_mail_env behaviour changed. We use %u instead of $U now. Added also several other variables which can be used. Ideas based on David Champion's mailpath library.
author Timo Sirainen <tss@iki.fi>
date Fri, 20 Dec 2002 06:47:39 +0200
parents 664de3231e33
children ef64c9a50326
line wrap: on
line diff
--- a/dovecot-example.conf	Fri Dec 20 06:43:11 2002 +0200
+++ b/dovecot-example.conf	Fri Dec 20 06:47:39 2002 +0200
@@ -141,8 +141,20 @@
 
 # Default MAIL environment to use when it's not set. By leaving this empty
 # dovecot tries to do some automatic detection as described in
-# doc/mail-storages.txt. $U will be replaced with username. Some examples:
-# maildir:/var/mail/$U/Maildir, mbox:~/mail/
+# doc/mail-storages.txt. There's a few special variables you can use:
+#
+#   %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
+#
+# 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. Some examples:
+#
+#   maildir:/var/mail/%1u/%u/Maildir
+#   mbox:~/mail/
+#
 #default_mail_env = 
 
 # Space-separated list of fields to cache for all mails. Currently these