[dovecot-cvs] dovecot/doc variables.txt,1.8.2.1,1.8.2.2

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


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

Modified Files:
      Tag: branch_1_0
	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.8.2.1
retrieving revision 1.8.2.2
diff -u -d -r1.8.2.1 -r1.8.2.2
--- variables.txt	8 Jul 2006 15:57:55 -0000	1.8.2.1
+++ variables.txt	10 Aug 2006 20:22:39 -0000	1.8.2.2
@@ -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