The Montana scraper runs emails through a regular expression that strips out the first part of many legislator email addresses. The regex truncates emails like Sen.Bradl...@mt.gov to Ham...@mt.gov and emails like james.a...@gmail.com to per...@gmail.com. As a result, several Montana emails were incorrect.
I've submitted a patch with a slightly more permissive regex: https://github.com/sunlightlabs/openstates/pull/865
This new regex is not perfect either, but based on my tests it matches every Montana legislator email address while filtering out the surrounding HTML.
Chris Zubak-Skees
News Developer
Center for Public Integrity
202-481-1233