Our email filter keeps two kinds of address, and a Wix subdomain is why it almost kept everything
When a Nakodo business campaign finds a cafe in a places listing, the listing usually gives us a name, an address, a category and a website. What it very often does not give us is an email, and the whole product is email. So we read the business's own website and look for one. The naive version of this is a regex over the HTML. Run that against a few hundred real pub and salon websites and look…
The email filter used by Nakodo business campaigns keeps two kinds of email addresses: those at the site's own name and personal mail addresses. It checks the domain to ensure it matches the business name, excluding those from popular email providers like Gmail, Hotmail, and ISP mailboxes. The system flags any suspicious local parts, like machine-generated codes or long numbers, and personal mail addresses.
The filter's main issue lies in its handling of subdomains from hosting platforms like Wix, SquareSpace, and others. When a business uses a Wix subdomain, the filter incorrectly accepts any email address at the subdomain, allowing Wix's support and marketing emails to pass through. To fix this, the filter should deny emails from known hosting subdomains before checking the business name.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.