inbox

package
v0.23.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Box

type Box string

Box is which messages a list shows.

const (
	BoxUnread   Box = "unread"
	BoxAll      Box = "all"
	BoxArchived Box = "archived"
)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL