gem 'mailid'
Then run:
$ bundle
#user wants to send a message to another user
a.create_conversation(b, "subject", "body")
#user wants to reply to another user
a.reply(conversation, "body")
#user wants to forward a conversation
#get conversation's messages with
#conversation.forward_body
a.create_conversation(b, "subject", conversation.forward_body)
#user wants add conversation to archive
a.mark_as_archived(conversation)
#user wants remove conversation from archive
a.unarchive(conversation)
#user wants add conversation to trash
a.add_to_trash(conversation)
#user wants untrash conversation
a.untrash(conversation)
#user wants to get all his conversations
a.conversations
#user wants to get his inbox conversations
a.inbox
#user wants to get his sent conversations
a.sentbox
#user wants to get his archived conversations
a.archived