Documentation
¶
Overview ¶
Package inbox is the Inbox module: the owner's Tether mail, read through Tether's own message tools (tether_message_list and the rest), so nothing is consumed by reading: a message stays in its mailbox, read or unread, for every other reader too. The owner's addresses are a setting; every call is made as one of them, never as an address a request names.
GET /api/m/inbox/unread returns the cached {unread, ready} snapshot. The existing refresh loop and unread listings publish inbox.unread when that snapshot changes.
Ported from Basalisk (internal/inbox, frontend/src/apps/inbox), Tether being its first source.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
ID string `json:"id"`
Account string `json:"account"` // the owner's address it was sent to
From string `json:"from"`
FromName string `json:"from_name,omitempty"`
To string `json:"to"`
Kind string `json:"kind"`
Thread string `json:"thread,omitempty"`
Subject string `json:"subject"`
Body string `json:"body"`
Created string `json:"created"`
Read bool `json:"read"`
Archived bool `json:"archived"`
}
Message is one message as the window and the tools show it.
type Outgoing ¶
type Outgoing struct {
From string `json:"from"`
To string `json:"to"`
Subject string `json:"subject"`
Body string `json:"body"`
Thread string `json:"thread,omitempty"`
InReplyTo string `json:"in_reply_to,omitempty"`
}
Outgoing is a message the owner sends: from one of their addresses.