<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
<br>
</div>
<blockquote type="cite">
<div>
<br>
</div>
<div>
<br>
</div>
<div>
Hi,
</div>
<div>
<br>
</div>
<div>
there seems to be a problem when expanding variables containing a
</div>
<div>
single '%' in value in dovecot V2.3.6
</div>
<div>
<br>
</div>
<div>
having a user defined Variable in user_attrs like
</div>
<div>
<br>
</div>
<div>
user_attrs = name=home=/maildir/%Ln,
</div>
<div>
=myvar=path/%L{ldap:sAMAccountName}
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
and sAMAccountName conains a '%', in my example "sonder%zeichen"
</div>
<div>
leads to:
</div>
<div>
<br>
</div>
<div>
lda(sonder%zeichen)<5723><ov9uCHjOGV1bFgAACDoIoQ>: Fatal: Failed to
</div>
<div>
expand plugin setting myvar = 'path/sonder%zeichen': Unknown
</div>
<div>
variable '%z'
</div>
<div>
<br>
</div>
<div>
same setup works with dovecot 2.2.29
</div>
<div>
<br>
</div>
<div>
Any Feedback appreciated.
</div>
<div>
Thanks.
</div>
<div>
Matze
</div>
</blockquote>
<div>
<br>
</div>
<div>
You can use %% to escape a %
</div>
<div class="io-ox-signature">
<pre>---
Aki Tuomi</pre>
</div>
</body>
</html>