rails g model email from:index to subject date message_id in_reply_to content_type charset references:text header:text body:text
Migrate db
Add better_errors gem
Store email data to sqlite