SIGN IN SIGN UP

TUN-10798: Parse Quick Tunnel allowed mail rules

## Summary

- extract the existing recipient-rule parser and validation helpers from the OTP PoC
- normalize and deduplicate repeated or comma-separated exact email and `*@domain` rules
- reject malformed addresses, wildcard domains, and empty rule sets
- keep the implementation as dead code with no CLI flag, provisioning, auth handler, or transport wiring

## Testing

- `make test`
- `make lint`

## Jira

- [TUN-10798](https://jira.cfdata.org/browse/TUN-10798)
A
Alessandro Frigerio committed
274888eb1e63c0d3764564eef89835b9fd47c54c
Parent: 4dd589f
Committed by Rhys Rustad-Elliott <rrustad-elliott@cloudflare.com> on 8/28/2026, 3:37:26 PM