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 ¶
Driver is injectable so selection, ownership changes, and uncertain presses can be exercised without opening Mail or performing an archive action.
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.