Just a thought, but Griddler is already dependent on Rails so you have the Mail gem available which has a full-blown Treetop parser under the hood:

```ruby
to = Mail::AddressList.new(params[:to]).addresses
to.each { |address| puts address.local }
```

http://rdoc.info/gems/mail/Mail/Address