Colander is a gem to collect emails from various file formats.
Supported formats
- "Old" Ms Excel files, ending in .xls
- Ms Excel files ending with .xlsx
- CSV, Comma-separated values
- Plain text files
Usage
parser = Colander.parse("/path/to/file.xls")
parser.emails # => ["foo@bar.com"]
or
parser = Colander.parse("/path/to/file_without_extension", "filename.xlsx")
parser.emails # => ["foo@bar.com"]