Allows to fetch body structue of specified email.
Allows to fetch bytes of given mime binary part
Allows to fetch bytes of given mime binary part
Id of message
Binary part specification. The data in binary part specification will be used to parse conent to stream of bytes.
When invoked this will return response to IMAPv4 CAPABILITY command as defined in RFC3501 6.1.1
Fetches email headers specified from the currently selected mailbox (RFC3501 6.4.5), given the specified range of emails.
Fetches email headers specified from the currently selected mailbox (RFC3501 6.4.5), given the specified range of emails.
of email to return
Perform the EXAMINE command as per RFC3501 6.3.1.
Perform the EXAMINE command as per RFC3501 6.3.1.
Name of the mailbox for examine command
Returns a list of mailboxes, that are available to logged in user
Performs LOGIN to IMAP server with supplied credentials.
Performs LOGIN to IMAP server with supplied credentials.
Returns on left when login was not succesfull and on right with capabilities supported.
Name of the user
Users password
Performs LOGOUT as per RFC3501 6.1.3.
Performs LOGOUT as per RFC3501 6.1.3. Note as result of this command the connection with the server will be closed, and further commands to server will fail. Note that logout is automatically executed when the stream with IMAPClient terminates.
Perfrom seach of the messages in selected mailbox as per RFC3501 6.4.4
Perfrom seach of the messages in selected mailbox as per RFC3501 6.4.4
term to execute search with
charset, when not specified, ASCII is used
Perform the SELECT command as per RFC3501 6.3.1.
Perform the SELECT command as per RFC3501 6.3.1.
Name of the mailbox to select
Allows to fetch textual representation of given mime part
Allows to fetch textual representation of given mime part
Id of message
Textual part specification. The data in specification will be used to decode text to resulting stream of strings.
Simple IMAP client that allows to exchange messages(EMAIL) with server via IMAP protocol.
Note that operations on the IMAP client must be executed in sequence (i.e. you sohould not concurrently execute fetching of two body streams). Although concurrent operations are safe, only one of them will be allowed at any given time.