Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Message

Index

Constructors

constructor

Properties

attachments

attachments: any[]

bcc

bcc: any[]

Optional body

body?: string

cc

cc: any[]

date

date: Date

displayNames

displayNames: string[][]

from

from: string

hasAttachment

hasAttachment: boolean

id

id: string

parentId

parentId: string

response

response: boolean

session

session: Session

state

state: string

subject

subject: string

systemFolder

systemFolder: string

threadId

threadId: string

to

to: string[]

unread

unread: boolean

Methods

fetchAuthor

  • fetchAuthor(): Promise<User>

fetchBody

  • fetchBody(parse: boolean): Promise<string>
  • Fetches the message body and marks the message as read

    Parameters

    • parse: boolean

      Wether the body should be decoded or not

    Returns Promise<string>

moveToTrash

  • moveToTrash(): Promise<void>
  • Moves the message to the trash folder

    Returns Promise<void>

reply

  • Replies to this message and returns the reply's id

    Parameters

    Returns Promise<number>

toJSON

Generated using TypeDoc