Hamid Maadani: > > If the configuration says $$or, what code shall responsible for > > treating this as $or? The Postfix cfg_parser does not do that, and > > dict_mongodb.c will pass $$or into the mongo-c library. > > It does not? I might totally be me misunderstanding the documentation,
Only when config is specified in main.cf. Not when config is specified as in the current mongodb_table manpage. > now, in my case, I'm using a docker container, and am using parameters > in main.cf , a sample below: > docker_va_uri = $docker_dburi > docker_va_dbname = $docker_dbname > docker_va_collection = mailbox > docker_va_filter = {"$$or": [{"username":"%s"}, {"alias.address": "%s"}], > "active": 1} > docker_va_result_attribute = username Here you have to duplicate the $. That leaves Viktor's question about placing quotes around "$or". Wietse _______________________________________________ Postfix-devel mailing list -- postfix-devel@postfix.org To unsubscribe send an email to postfix-devel-le...@postfix.org