Config reference

Copy config.example.json5. Search order:

  1. --config path

  2. ./config.local.json5

  3. ./config.json5

  4. %APPDATA%/agentic-email-integration/config.json5 (Windows)

  5. ~/.config/agentic-email-integration/config.json5

Top-level keys

Key Type Notes

account

string

Himalaya account name

mailbox

string

Folder/label (e.g. INBOX)

pollIntervalSeconds

number

Watch interval

pageSize

number

Envelopes per poll

unreadOnly

boolean

Prefer unread filter

cursor

object

API key env, model, cwd maps

safety

object

Draft-only flags

rules

array

Ordered matchers

cursor.repoRoots

Map owner/repo or owner/ to a local root. dev-centr/C:/code/github.com/dev-centr resolves dev-centr/foo to …/dev-centr/foo.

Rules

Each rule has name, action (draft-reply | investigate-ci | ignore), and match:

  • fromIncludes — substring list (OR)

  • subjectIncludesAny — OR

  • subjectIncludesAll — AND

Empty match criteria never match.