@yoshteq/ti365-ts-sdk
    Preparing search index...

    Class Pop3Mail

    Represents one Mail entry.

    Index

    Constructors

    • Parameters

      • socket: TlsWebSocket
      • reader: SocketReader
      • id: string
      • Optionalsize: number
      • Optionaluid: string

      Returns Pop3Mail

    Properties

    headers?: MailHeaders

    Methods

    • Returns string

    • Returns undefined | string

    • Returns undefined | number

      Total size of the mail in bytes.

    • States if Headers are loaded.

      Returns boolean

      true If headers are loaded

    • Loads the headers of the Mail.

      Returns Promise<MailHeaders>

      Promise

    • Marks a Mail to be deleted at the end of the session. This mail will only be deleted if you call quit on the Pop3Session

      Returns Promise<void>

    • Loads the complete MIME Mail as an one ArrayBuffer.

      Returns Promise<Mail>

      Array Buffer containing the whole mail.

    • Loads a mail in smaller buffer chunks. This buffers have all the given size, besides the last one which can be smaller.

      Parameters

      • bufferSize: number

        The max size of the data buffer in bytes.

      • callback: (data: Uint8Array) => Promise<unknown>

        Method that will be called if one data buffer is ready. The new Buffer will be delivered after it has been resolved.

      Returns Promise<void>