Extract all email addresses from a file
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
emailsfromfile.py

README

EmailsFromFile
http://patrickmylund.com/projects/emailsfromfile/

EmailsFromFile is a Python script that extracts all unique email addresses from
a file. It follows a regular expression pattern based on the RFC 2822 standard
and should thus return all valid email addresses regardless of how they appear
in the file. For example, EmailsFromFile will distinguish between separate email
addresses in a comma-separated list of values, such as a CSV file containing names,
addresses, phone numbers and email addresses.

Usage: python emailsfromfile.py <filename> [separator] [encoding]