On Thursday, June 5, 2014 4:32:52 PM CEST, Viktor Dukhovni wrote:
Domains passed to lookup tables and match lists need to be in
a-label form.

That would make pcre almost impossible and mysql and pgsql lookups rather inconvenient.

The a-label form of blåbærsyltetøy in a-label form is xn--blbrsyltety-y8ao3x. Matching the PCRE /.*syltetøy.*/ in a-label form would be inconvenient, perhaps impossible.

Postgres and Mysql have builtin support for UTF8 strings so mysql/pgsql tables can use e.g. the ilike operator, but they do not support strings composed from a-labels. Here's a pgqsl concoction to match usernames, optionally with subaddresses:

  select id from addresses where localpart='%u' or localpart ilike '%u-%'

I cannot imagine any way to implement that if %u is in a-label form.

Arnt

Reply via email to