contacts

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package contacts keeps the index of addresses the user has written to, built from the Sent folder. It answers the is_contact and replied_before signals.

Index

Constants

View Source
const ScanLimit = 2000

ScanLimit is how many of the newest sent messages one scan reads.

Variables

This section is empty.

Functions

func Fill

func Fill(ctx context.Context, st *store.Store, s *message.Summary) error

Fill sets the two contact signals on a parsed message. The index only records addresses the user has sent mail to, so today both signals mean the same thing.

func Sync

func Sync(ctx context.Context, mb mail.Mailbox, st *store.Store, accountID int64, sentFolder string) (int, error)

Sync reads the recipients of recent sent mail and upserts them into the account's contacts. It returns how many addresses it saw. Run it on connect and every few hours.

Types

This section is empty.

Jump to

Keyboard shortcuts

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