thread

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package thread houses core functionality for the AMQ CLI.

TODO: Implement package responsibilities defined in specs/001-local-maildir-queue.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	ID      string    `json:"id"`
	From    string    `json:"from"`
	To      []string  `json:"to"`
	Thread  string    `json:"thread"`
	Subject string    `json:"subject"`
	Created string    `json:"created"`
	Body    string    `json:"body,omitempty"`
	RawTime time.Time `json:"-"`
}

Entry is a thread message entry.

func Collect

func Collect(root, threadID string, agents []string, includeBody bool, onError func(path string, err error) error) ([]Entry, error)

Collect scans agent mailboxes and returns messages for a thread. onError is called when a message cannot be parsed; returning a non-nil error aborts the scan.

Jump to

Keyboard shortcuts

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