IMAP based mail receiver. API is compatible with TubMailReceiver, so can be used as direct replacement. For LEGACY code only. In new code UBMailImap should be used
# new TubMailReceiverImap (paramsObj: object)
Arguments:
paramsObj: objectMail server connection parameters
Methods
# deleteMessage (msgIndex: number) → TubMimeMessBind instance
Method for TubMailReceiver POP3 compatibility.
Mark message from ALL 'INBOX' messages by it's index as Deleted.
Real deleting will be done after successful closeFolder or expungeFolder.
For compatibility with TubMailReceiver UBMailImap.expungeFolder is called inside freeNative() method.
Arguments:
msgIndex: number
# freeNative () instance
Close IMAP connection and release all resources ASAP
# getMessageSize (msgIndex: number) instance
Method for TubMailReceiver POP3 compatibility.
Returns size of ALL message from 'INBOX' by it's index
Arguments:
msgIndex: number
# receive (msgIndex: number) → TubMimeMessBind instance
Method for TubMailReceiver POP3 compatibility.
Receive a full message from ALL 'INBOX' messages by it's index.
Messages indexes are in the order they're received
Arguments:
msgIndex: number
# reconnect () → boolean instance
Method for TubMailReceiver POP3 compatibility. Do nothing.
