activebridge / mailid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mailid

(in the development)

Installation

Add to your Gemfile:
gem 'mailid'

Then run:

$ bundle

How to send a message?

#user wants to send a message to another user
a.create_conversation(b, "subject", "body")

How to reply a message?

#user wants to reply to another user
a.reply(conversation, "body")

How to forward a conversation?

#user wants to forward a conversation
#get conversation's messages with 
#conversation.forward_body
a.create_conversation(b, "subject", conversation.forward_body)

How to archive/unarchive conversation?

#user wants add conversation to archive
a.mark_as_archived(conversation)

#user wants remove conversation from archive
a.unarchive(conversation)

How to trash/untrash conversation?

#user wants add conversation to trash
a.add_to_trash(conversation)

#user wants untrash conversation
a.untrash(conversation)

How can I get my conversations?

#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

About

License:MIT License


Languages

Language:Ruby 95.2%Language:JavaScript 4.8%