This chapter covers the core features and capabilities of List Hygiene Tool.
+alias tagsFollow this guide to get List Hygiene Tool up and running in your environment.
# Clean a text file (one email per line)
python src/list_hygiene.py examples/sample_emails.txt
# Output as CSV
python src/list_hygiene.py emails.txt --output clean.csv --format csv
# Generate a cleaning report
python src/list_hygiene.py emails.txt --report
# Keep role addresses (don't filter them out)
python src/list_hygiene.py emails.txt --keep-roles
# Keep disposable domains
python src/list_hygiene.py emails.txt --keep-disposable
# Disable typo correction
python src/list_hygiene.py emails.txt --no-typo-fix
# Disable deduplication
python src/list_hygiene.py emails.txt --no-dedup| Check | Example | Action |
|---|---|---|
| Invalid syntax | not-an-email | Removed |
| Disposable domain | user@mailinator.com | Removed (unless --keep-disposable) |
| Role address | admin@example.com | Removed (unless --keep-roles) |
| Domain typo | user@gmial.com | Corrected to user@gmail.com |
| Duplicate | Multiple user@example.com | Deduplicated |
| Gmail dots | u.s.e.r@gmail.com | Normalized to user@gmail.com |
| Plus aliases | user+tag@example.com | Normalized to user@example.com |
Get the full List Hygiene Tool and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.