personal-email-filter v1.0.0

Crystal CLI and library: splits a CSV of contacts into business and personal (free mailbox) addresses and keeps either set.

personal-email-filter

Crystal command line tool and library. Give it a CSV of contacts and it separates business email addresses from personal ones on free mailbox domains (gmail.com, googlemail.com, yahoo.com, outlook.com, hotmail.com, live.com, icloud.com, aol.com, proton.me, protonmail.com, gmx.com, mail.com, yandex.com, zoho.com), then reports the counts and the personal share. Add your own free-mail domains with --domains FILE (one per line).

Part of the OneGTMLab free GTM tools. Background on the idea: data enrichment.

Install

shards build   # then ./bin/personal-email-filter

Use

Input: a CSV with a header row and an email column (name another with --column NAME). Add --keep business to print the CSV of business rows only (header kept), or --keep personal for the reverse. A missing column or a row without @ stops the run with an error.

$ ./bin/personal-email-filter sample.csv
business: 6
personal: 4
personal share: 40.0%

personal rows:
  ana.ruiz@gmail.com
  cara.lin@yahoo.com
  eve@outlook.com
  hal@proton.me

Test

crystal spec

Offline, no network calls, no dependencies beyond the language runtime. MIT licensed.

Repository

personal-email-filter

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • about 1 hour ago
  • November 28, 2026
License

MIT License

Links
Synced at

Sat, 28 Nov 2026 22:42:10 GMT

Languages