John Fawcett: > > I'll diff your new patch against the previous version and see what > > changes you made. > > if you break out of the loop without reading all the result data you > will get the following mysql error on the next query. > > Commands out of sync; you can't run this command now
Noted. Meanwhile I have separated 1) the code that handles the result set with the lookup result, from 2) the code that handles all other result sets. Without interleaving 1) and 2), the code becomes easier to follow. It's uploaded as postfix-3.2-20161225-nonprod; please check it out. Wietse