Hamid Maadani via Postfix-devel:
> > What code is supposed to pay attention to '$' characters? The Postfix 
> > client?
> > The MongoC library?
> 
> In MQL, you have operators like "$or", or you can use the value of a field
> like "$field". These are instances that the person configuring postfix would
> need to use a $ character in either query or projection. In this example:
> filter = {"$$or": [{"username":"%s"}, {"alias.address": "%s"}], "active": 1}
> I am configuring dict_mongo to use an $or operator, and search the collection
> for any records which has a username or alias.address set to the requested 
> value.

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.

        Wietse
_______________________________________________
Postfix-devel mailing list -- postfix-devel@postfix.org
To unsubscribe send an email to postfix-devel-le...@postfix.org

Reply via email to