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 (paramsObjobject)

Arguments:
  • paramsObj: object
    • hoststring

      mail server host

    • portstring

      mail mail server port

    • user=''string

      mail server login

    • password=''string

      mail server password

    • tlsboolean

      use tls on server request

    • fullSSLboolean

      Setup TLS before any IMAP command

    • authboolean

      authentication required

    Mail server connection parameters

Methods

# deleteMessage (msgIndexnumber) → 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:

# freeNative () instance

Close IMAP connection and release all resources ASAP

# getMessageSize (msgIndexnumber) instance

Method for TubMailReceiver POP3 compatibility.

Returns size of ALL message from 'INBOX' by it's index

Arguments:

# receive (msgIndexnumber) → 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:

# reconnect () → boolean instance

Method for TubMailReceiver POP3 compatibility. Do nothing.