mailax

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 6 Imported by: 0 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 mailax provides the public Accessibility operations needed to archive an individual message in an explicitly owned Mail viewer. It never scripts Mail.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Trusted() error
	Prepare(context.Context, int64) (Session, error)
}

Driver is injectable so selection, ownership changes, and uncertain presses can be exercised without opening Mail or performing an archive action.

func New

func New() Driver

type Session

type Session interface {
	SelectNext(context.Context, string) (bool, error)
	Guard() error
	ValidateArchive() error
	// Press returns true only after AXPress may have been dispatched. A failure
	// after that point requires reconciliation and must never be retried.
	Press() (attempted bool, err error)
	Release()
}

Session retains only the owned viewer and its message list. SelectNext chooses an individual row with the exact subject; the caller must separately compare the selected message's Apple Event identity before accepting that row.

Jump to

Keyboard shortcuts

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