[Dovecot] dovecot 1.2: dict no longer really support DICT_ITERATE_FLAG_RECURSE
Bernhard Herzog
bh at intevation.de
Thu Oct 9 18:15:28 EEST 2008
Hi,
In dovecot 1.1, I could use DICT_ITERATE_FLAG_RECURSE when iterating over a
dict to retrieve all entries that start with a given prefix. This doesn't
seem to work anymore in the new dict implementation in dovecot 1.2. Looking
at the SQL queries actually generated, it seems as if dovecot 1.1 used to
generate queries that use pattern matching (key LIKE "my/prefix/%") whereas
dovecot 1.2 does not, so it's no wonder that it doesn't work in 1.2.
This probably has to do with the pattern matching for dict keys in the config
file. It would be enough for my purposes at the moment -- i.e. getting the
metadata plugin to work with dovecot 1.2 -- if recursion were only possible
for the last of fields in the pattern.
Regards,
Bernhard
--
Bernhard Herzog | ++49-541-335 08 30 | http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://dovecot.org/pipermail/dovecot/attachments/20081009/32071fbe/attachment.bin
More information about the dovecot
mailing list