HTTP config sync via hello server #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add HTTP-based config sync so gomail instances can fetch and push rules via the hello server (e.g.
http://hello:1961).Motivation
Currently rules (
gomail.yaml) and learned senders (gomail-learned.yaml) are local files. This means:Proposed approach
Add endpoints to the hello server (or gomaild itself):
GET /config/gomail/rules— fetch current rulesGET /config/gomail/learned— fetch learned sendersPUT /config/gomail/learned— push updated learned sendersgomail would:
Alternatives considered
Related
Fixed in the same release: learned senders save path now co-locates with gomail.yaml and supports
GOMAIL_CONFIG_DIRoverride.Migrated from Codeberg: originally #1, opened 2026-04-08.