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

    Interface MessageReceiveListener

    Interface for listening to message receive events during the KIM mail fetching process. This interface provides callbacks for different stages of mail processing, allowing the client to track progress and handle errors during mail retrieval and processing.

    interface MessageReceiveListener {
        onFetchingNewMail(id: string): void;
        onFetchingNewMailError(id: string, message: string): void;
        onDecryptingNewMail(id: string, mailInfo: KimEncryptedMailInfo): void;
        onVerifyNewMail(id: string): void;
        onDownloadingMailContent(id: string): void;
        onNewMailProcessed(kimMail: KimMail): void;
    }
    Index

    Methods

    • Called when a new mail is being fetched from the POP3 server.

      Parameters

      • id: string

        The unique identifier (UID) of the mail being fetched

      Returns void

    • Called when an error occurs while fetching a specific mail from the server.

      Parameters

      • id: string

        The unique identifier (UID) of the mail that failed to fetch

      • message: string

        A descriptive error message explaining what went wrong

      Returns void

    • Called when a mail is being decrypted after successful fetch.

      Parameters

      • id: string

        The unique identifier (UID) of the mail being decrypted

      • mailInfo: KimEncryptedMailInfo

        Information about the encrypted mail being processed

      Returns void

    • Called when a mail is being verified (signature verification, etc.).

      Parameters

      • id: string

        The unique identifier (UID) of the mail being verified

      Returns void

    • Called when mail content is being downloaded (e.g., attachments from KAS).

      Parameters

      • id: string

        The unique identifier (UID) of the mail whose content is being downloaded

      Returns void

    • Called when a mail has been completely processed and is ready for use.

      Parameters

      • kimMail: KimMail

        The fully processed KIM mail object

      Returns void