konbi's local AI in Bulwark: automatic mail sorting
This repository has been archived on 2026-12-01. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • JavaScript 76.5%
  • Python 23.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
lip 4c211cc946 README, SPEC: the plugin is optional since 2026-11-30
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 09:19:18 +00:00
scripts 0.3.0: an event from a project email joins the project 2026-11-27 14:21:35 +00:00
src 0.3.1: "Add to calendar" not among a mail row's hover buttons 2026-11-29 10:11:48 +00:00
test 0.3.0: an event from a project email joins the project 2026-11-27 14:21:35 +00:00
.gitignore bulwark-ai 0.1.0: automatic mail sorting switch and labels 2026-11-27 10:09:48 +00:00
CHANGELOG.md 0.3.1: "Add to calendar" not among a mail row's hover buttons 2026-11-29 10:11:48 +00:00
LICENSE bulwark-ai 0.1.0: automatic mail sorting switch and labels 2026-11-27 10:09:48 +00:00
manifest.json 0.3.1: "Add to calendar" not among a mail row's hover buttons 2026-11-29 10:11:48 +00:00
package-lock.json bulwark-ai 0.1.0: automatic mail sorting switch and labels 2026-11-27 10:09:48 +00:00
package.json 0.3.1: "Add to calendar" not among a mail row's hover buttons 2026-11-29 10:11:48 +00:00
README.md README, SPEC: the plugin is optional since 2026-11-30 2026-12-01 09:19:18 +00:00
SPEC.md README, SPEC: the plugin is optional since 2026-11-30 2026-12-01 09:19:18 +00:00

bulwark-ai

Optional since 2026-11-30 (konbi/infra#31, wiki decision 127): switched on or off with the stack's scripts/modules.py (ai); off on konbi's dev server.

konbi's local AI inside Bulwark. The model (Ollama, ministral-3:3b) runs on konbi's own server; emails never leave it.

  • Automatic mail sorting (wiki decision 52): one label on each new inbox email, from a fixed list (Action needed, Invoices, Clients, Newsletters, Notifications, Personal). On for everyone; each person can turn it off under Settings → Add-ons → AI. The labels are added to the person's tags, named in their language, whenever they're missing (to get rid of them for good, turn sorting off).
  • Email → calendar event (decision 53): "Add to calendar" on an open email or a row's menu; the AI fills in title, day, start, length and place in about 10 s (never overwriting what you typed), warns when you're already busy then, and you add the event to the calendar you pick. An event made from an email in a project joins that project.
  • Task drafts from emails live in the Tasks plugin (bulwark-vikunja 0.8.0).

The sorting runs on the server (infra/stack/sftpgo-hooks/mail_sorter.py, ai_sort.py); this plugin only shows the switch and adds the tags. The "service" credential is provisioned automatically (PLUGIN_PROVISION ai/service).

Build: npm install && npm run package → bulwark-ai.zip; texts in scripts/locales.py (python3 -I scripts/locales.py).