8000 docs: cleanup and fix outdated or missing information by dominicgisler · Pull Request #92 · dominicgisler/imap-spam-cleaner · GitHub
[go: up one dir, main page]

Skip to content

docs: cleanup and fix outdated or missing information - #92

Merged
dominicgisler merged 1 commit into
masterfrom
docs/cleanup
Oct 27, 2026
Merged

dominicgisler merged 1 commit into
masterfrom
docs/cleanup

Conversation

@dominicgisler
Copy link
Copy Markdown
Owner

Docs-only cleanup after checking every page against the code. Code bugs found along the way are filed separately: #85, #86, #87, #88, #89, #90, #91.

Misleading in ways that cost money or security

  • Runs re-analyze everything (cost). New "Runs" section in inboxes.md: every run analyzes all messages between minage and maxage, nothing is remembered, and without maxage the whole folder is analyzed every run. The example used * * * * * with maxage: 24h, i.e. up to 1,440 paid analyses per message. The examples now use */5 * * * * with maxage: 15m. Getting started links to the section.
  • tls: false is plaintext. There's no STARTTLS (DialInsecure), so the password is sent unencrypted. The examples now use port: 993 with tls: true, and the table explains false.
  • Whitelists. Explained that the regex matches the raw From header and is unanchored, and that bare addresses don't match the ^.* <addr>$ form; added a pattern that matches both. Added a warning that From can be forged. Dots are escaped in all examples.
  • Scores. New table on the providers overview with what minscore means per provider. The SpamAssassin page now explains its -2…10 → 0…100 mapping (its default 5.0 = 58).

Wrong or outdated

  • Providers overview: the default AI prompt was missing the Content: label the code uses. "ignored from maxsize" → "not affected by maxsize".
  • gemini.md: apikey and model said "OpenAI".
  • spamassassin.md: host/port aren't required (defaults 127.0.0.1/783), and maxsize cuts the message sent to SpamAssassin, not "the model". Documented the 5s timeout default (also on rspamd.md).
  • logging.md: removed the inaccurate "only these levels are in use" line and fixed the stray space in `trace `. Documented what happens with an invalid level.
  • http-api.md: the server runs except with -now; inbox is the IMAP username (shared usernames are combined); which runs are stored; a warning that there's no authentication.
  • README and home page log example: five scores ≥ 75 said "Moved 4 messages". Updated the version and added the HTTP server line.
  • getting-started.md: "wiki pages" → links. Explained why store.db must exist before starting (otherwise Docker creates a directory, see Error Could not init database: ping database: unable to open database file (14) #48). The example config was out of sync with config.example.yml (markread) and is identical again.
  • OpenAI model name is now gpt-5-mini everywhere.

Missing

Structure

  • docs/contributing.md now includes CONTRIBUTING.md via pymdownx.snippets (with check_paths: true, so a broken include fails the strict build) instead of keeping a copy.
  • CONTRIBUTING: one H1 instead of eleven; fixed the #code-style--linting anchor, which was broken on the docs site; go get ./... → go mod download; go run . needs config.yml first; dev compose for spamd/rspamd; make lint rewrites files.
  • SECURITY.md links to GitHub's private vulnerability reporting (which is enabled).
  • Added Home to the mkdocs nav. Mentioned the include in AGENTS.md.

Left for the code issues

These behaviours are documented as intended, so the docs become correct once the code is fixed: the timestamp format (#86), null responses (#87), maxsize truncation (#88), the rspamd url requirement (#90) and minscore: 0 (#91).

Testing

  • mkdocs build --strict passes. The two INFO notices it printed before (Home missing from the nav, the broken contributing anchor) are gone.
  • Checked the built site: the include renders, there is one H1, and the new #runs/#scores anchors and cross-links resolve.
  • A throwaway test (not committed) loaded config.example.yml, the getting-started config, and the inboxes.md + whitelists.md snippets through app.LoadConfig plus each provider's ValidateConfig. It also checked the whitelist patterns: the documented forms match, and look-alikes (exampleXcom, ….evil.org, subdomains, a second address) don't.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dominicgisler dominicgisler added the documentation Improvements or additions to documentation label Oct 27, 2026
@dominicgisler
dominicgisler merged commit 3e743bc into master Oct 27, 2026
1 check passed
@dominicgisler
dominicgisler deleted the docs/cleanup branch October 27, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0