[dovecot-cvs] dovecot/doc variables.txt,1.1,1.2

cras at dovecot.org cras at dovecot.org
Mon Jul 26 19:39:21 EEST 2004


Update of /home/cvs/dovecot/doc
In directory talvi:/tmp/cvs-serv20601/doc

Modified Files:
	variables.txt 
Log Message:
Added support for %offset.width format in variables.



Index: variables.txt
===================================================================
RCS file: /home/cvs/dovecot/doc/variables.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- variables.txt	31 May 2004 18:04:46 -0000	1.1
+++ variables.txt	26 Jul 2004 16:39:18 -0000	1.2
@@ -22,6 +22,7 @@
  %U - uppercase
  %E - escape '"', "'" and '\' characters by inserting '\' before them.
 
-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.
+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.



More information about the dovecot-cvs mailing list