imap, doc: documented stuffs on imapsession

I documented some stuffs and now updates the TODO List:

* 
Documentation of each method in IMAPSession.js, parameters and examples, returned data.

* **appendMessage** flags and date parameters should be made more nodeJS friendly + they should be made optional through an option parameter.
* **fetchMessagesByNumber / fetchMessagesByUid** option parameter should also be made more nodeJS friendly.
* 
remove options parameter of **copyMessages**: use only UID.

* **add tests**(what i added)

LGTY?
Yep


On Wed, Jul 2, 2014 at 12:47 AM, Hoà V. DINH <notifications@github.com>
wrote:

> In docs/API.md:
>
> > +* text
> > +
> > +Otherwise like RFC3501, you should assign the `option` to `ALL`, `FAST` or `FULL` to do a shortcut.
> > +
> > +#### imap.search(query, callback)
> > +
> > +* query String
> > +* callback Function
> > +
> > +The `SEARCH` command implementation.
> > +
> > +#### imap.appendMessage(folder, data, flags, callback)
> > +
> > +* folder String
> > +* data String, rfc822 message data
> > +* flags Array
>
> Can we make flags optional?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/MailCore/mailcore.node/pull/2/files#r14415276>.
>



-- 
Yorkie Neil
https://github.com/yorkie
+18600219033