Commit Graph
8 Commits
Author SHA1 Message Date
OpenCode Cabillot e32806aab9 test: add indexer unit tests + integration marker; make indexer importable without env
- pytest.ini: 'integration' marker, deselected by default; the integration
  suite requires a live Qdrant and will only run in the nightly CI job.
- src/indexer.py: move env validation from import time into _validate_config()
  called by main() — the module can now be imported without MAILDIR_PATH /
  QDRANT_URL / COLLECTION_NAME set, enabling unit tests.
- tests/test_indexer.py: 27 new unit tests, no network and no model:
  decode_mime_words (encoded-words utf-8/iso-8859-1, mixed), extract_text_from_html
  (tags, scripts), normalize_email_address, parse_email_message with real
  EmailMessage objects (plain bodies, attachments detected and excluded from
  body, HTML alternative, unknown charset fallback via raw bytes message,
  encoded attachment filename), get_recent_keys against a real tmp_path
  Maildir (fresh mtime selected, old mtime excluded, colon-suffix keys).
  mailbox.Maildir(create=True) does not create cur/new/tmp on Python 3.11 —
  the test helper pre-creates them.
2026-10-09 00:16:10 +00:00
Julien Cabillot 9cf58596c9 fix: metadata
perso/mcp-maildir/pipeline/head This commit looks good
2026-03-25 17:59:25 -04:00
Julien Cabillot 1b1ba0ef1a fix(indexer): resolve Maildir keys by scanning filesystem directly
perso/mcp-maildir/pipeline/head This commit looks good
2026-03-22 16:35:07 -04:00
Julien Cabillot 88694264de feat: add folders selection
perso/mcp-maildir/pipeline/head This commit looks good
2026-03-20 16:27:49 -04:00
Julien Cabillot eeae628a1a feat: add batching
perso/mcp-maildir/pipeline/head This commit looks good
2026-03-16 21:06:26 -04:00
Julien Cabillot 52fcba17e5 feat: add incremental
perso/mcp-maildir/pipeline/head This commit looks good
2026-03-16 16:34:55 -04:00
Julien Cabillot 4e45f3e8d9 fix: perms
perso/mcp-maildir/pipeline/head This commit looks good
2026-02-27 10:32:42 -05:00
Julien Cabillot b96277064a feat: init 2026-02-26 16:34:25 -05:00