[dovecot-cvs] dovecot/doc variables.txt,1.9,1.10

cras at dovecot.org cras at dovecot.org
Thu Aug 10 23:22:44 EEST 2006


Update of /var/lib/cvs/dovecot/doc
In directory talvi:/tmp/cvs-serv32190/doc

Modified Files:
	variables.txt 
Log Message:
Negative offsets count from the end of the string. Patch by Johannes Berg.



Index: variables.txt
===================================================================
RCS file: /var/lib/cvs/dovecot/doc/variables.txt,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- variables.txt	8 Jul 2006 15:57:57 -0000	1.9
+++ variables.txt	10 Aug 2006 20:22:40 -0000	1.10
@@ -35,7 +35,10 @@
 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 offset is negative, it counts from the end, for example %-2.02i gives
+the UID mod 100 (last two characters of the UID printed in a string). If a
+positive offset points outside the value, empty string is returned, if a
+negative offset does then the string is taken from the start.
 
 For login_log_format_elements there are also these variables:
 



More information about the dovecot-cvs mailing list