Bernhard Herzog
2008-Oct-09 15:15 UTC
[Dovecot] dovecot 1.2: dict no longer really support DICT_ITERATE_FLAG_RECURSE
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: signature.asc 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-0002.bin>
Timo Sirainen
2008-Oct-09 15:18 UTC
[Dovecot] dovecot 1.2: dict no longer really support DICT_ITERATE_FLAG_RECURSE
On Oct 9, 2008, at 6:15 PM, Bernhard Herzog wrote:> 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.I remember thinking about this and I thought I did something similar. What kind of dict keys/configuration do you need now? -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20081009/69b7263d/attachment-0002.bin>