Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type EmailMessage ¶
type EmailMessage struct {
ID string `json:"id"`
ThreadID string `json:"threadId"`
MailboxID string `json:"mailboxId"`
Direction enum.EmailDirection `json:"direction"`
From string `json:"from"`
FromName string `json:"fromName"`
To []string `json:"to"`
Cc []string `json:"cc,omitempty"`
Bcc []string `json:"bcc,omitempty"`
Subject string `json:"subject"`
Body string `json:"body"`
AttachmentCount int `json:"attachmentCount"`
ReceivedAt time.Time `json:"receivedAt"`
}
type EmailThread ¶
type EmailThread struct {
ID string `json:"id"`
UserID string `json:"userId"`
MailboxID string `json:"mailboxId"`
Subject string `json:"subject"`
Summary string `json:"summary"`
IsViewed bool `json:"isViewed"`
IsDone bool `json:"isDone"`
LastSender string `json:"lastSender"`
LastSenderDomain string `json:"lastSenderDomain"`
LastMessageAt *time.Time `json:"lastMessageAt,omitempty"`
}
type ImapConfig ¶ added in v0.1.3
type ImapConfigInput ¶ added in v0.1.3
type Mailbox ¶ added in v0.1.3
type Mailbox struct {
ID string `json:"id"`
Provider enum.EmailProvider `json:"provider"`
EmailAddress string `json:"emailAddress"`
SenderID *string `json:"senderId,omitempty"`
InboundEnabled bool `json:"inboundEnabled"`
OutboundEnabled bool `json:"outboundEnabled"`
ReplyToAddress *string `json:"replyToAddress,omitempty"`
ConnectionStatus enum.ConnectionStatus `json:"connectionStatus"`
LastConnectionCheck time.Time `json:"lastConnectionCheck"`
ConnectionErrorMessage *string `json:"connectionErrorMessage,omitempty"`
}
type MailboxInput ¶ added in v0.1.3
type MailboxInput struct {
ID *string `json:"id,omitempty"`
Provider enum.EmailProvider `json:"provider"`
EmailAddress string `json:"emailAddress"`
SenderID *string `json:"senderId,omitempty"`
InboundEnabled *bool `json:"inboundEnabled,omitempty"`
OutboundEnabled *bool `json:"outboundEnabled,omitempty"`
ImapConfig *ImapConfigInput `json:"imapConfig,omitempty"`
SMTPConfig *SMTPConfigInput `json:"smtpConfig,omitempty"`
ReplyToAddress *string `json:"replyToAddress,omitempty"`
SyncFolders []*string `json:"syncFolders,omitempty"`
}
type SMTPConfig ¶ added in v0.1.3
type SMTPConfigInput ¶ added in v0.1.3
type ThreadMetadata ¶
type ThreadMetadata struct {
ID string `json:"id"`
Summary string `json:"summary"`
Participants []string `json:"participants"`
HasAttachments bool `json:"hasAttachments"`
Attachments []*Attachment `json:"attachments,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.