Repository navigation
feat(mail): raw .eml pipeline + mbox splitter + enmime handlers - #64
Merged
Merged
Conversation
- bin/mail/mbox2eml: mbox -> per-message .eml splitter (bare From fix, isSep envelope rule, global counter + nested dirs) - bin/mail/sync: GetMessageRaw (format=raw, 96MB cap) + --raw download mode for the gmail archive - internal/mailconv: enmime-based FromEML + type-handler registry (handlers.go); mailconv.go rework - docs/mail-import-rewrite-plan.md - go.mod: add jhillyerd/enmime/v2 (+ indirects)
eSlider
added a commit
that referenced
this pull request
Aug 21, 2026
…, docs truth-only bin/chats → bin/chat, internal/chats → internal/chat (singular, D14). refresh-linkedin-session python helper deleted — ported to internal/chat/linkedin_session.go (CDP cookies via x/net/websocket, profile copy, cookies.json + source-state.json); sync_linkedin calls it in-process (no subprocess). New bin/chat/refresh-session.go entry. docs/ = truth only: - plans/proofs archived to Gitea (#64 chat-import, #55 crm-proof, #58 load-baseline, #38 mail-plan) and deleted here; refactor-v1.0.md → epic #65 body - brain-rebuild → brain/rebuild.md, audit-recipes → facts/audit-recipes.md - design.md honesty fixes: import-git writes directly (was print-flow), no bin/kb/python claims, MCP surface = 3 tools, audit-db not 'audit stale' - roadmap marked historical; README index rewritten (current epics) AGENTS.md standing rules: Go-only/no Python, libs by domain, docs=truth, non-goals (graph semantics, reasoner/CGO untouched).
eSlider
added a commit
that referenced
this pull request
Aug 24, 2026
feat(mail): raw .eml pipeline + mbox splitter + enmime handlers
eSlider
added a commit
that referenced
this pull request
Aug 24, 2026
…, docs truth-only bin/chats → bin/chat, internal/chats → internal/chat (singular, D14). refresh-linkedin-session python helper deleted — ported to internal/chat/linkedin_session.go (CDP cookies via x/net/websocket, profile copy, cookies.json + source-state.json); sync_linkedin calls it in-process (no subprocess). New bin/chat/refresh-session.go entry. docs/ = truth only: - plans/proofs archived to Gitea (#64 chat-import, #55 crm-proof, #58 load-baseline, #38 mail-plan) and deleted here; refactor-v1.0.md → epic #65 body - brain-rebuild → brain/rebuild.md, audit-recipes → facts/audit-recipes.md - design.md honesty fixes: import-git writes directly (was print-flow), no bin/kb/python claims, MCP surface = 3 tools, audit-db not 'audit stale' - roadmap marked historical; README index rewritten (current epics) AGENTS.md standing rules: Go-only/no Python, libs by domain, docs=truth, non-goals (graph semantics, reasoner/CGO untouched).
eSlider
added a commit
that referenced
this pull request
Sep 15, 2026
feat(mail): raw .eml pipeline + mbox splitter + enmime handlers
eSlider
added a commit
that referenced
this pull request
Sep 15, 2026
…, docs truth-only bin/chats → bin/chat, internal/chats → internal/chat (singular, D14). refresh-linkedin-session python helper deleted — ported to internal/chat/linkedin_session.go (CDP cookies via x/net/websocket, profile copy, cookies.json + source-state.json); sync_linkedin calls it in-process (no subprocess). New bin/chat/refresh-session.go entry. docs/ = truth only: - plans/proofs archived to Gitea (#64 chat-import, #55 crm-proof, #58 load-baseline, #38 mail-plan) and deleted here; refactor-v1.0.md → epic #65 body - brain-rebuild → brain/rebuild.md, audit-recipes → facts/audit-recipes.md - design.md honesty fixes: import-git writes directly (was print-flow), no bin/kb/python claims, MCP surface = 3 tools, audit-db not 'audit stale' - roadmap marked historical; README index rewritten (current epics) AGENTS.md standing rules: Go-only/no Python, libs by domain, docs=truth, non-goals (graph semantics, reasoner/CGO untouched).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Raw Gmail .eml pipeline and a robust mbox splitter, powering the mail->brain corpus import.
Fromseparator fix,exclude separator from body,
isSepenvelope rule, global counter + nested dirs).GetMessageRaw(format=raw, 96MB cap) +--rawdownload mode.FromEML+ type-handler registry (handlers.go),mailconv.gorework.docs/mail-import-rewrite-plan.md.jhillyerd/enmime/v2(+ indirects).Split out of a larger session; contacts importer and brain parallel-write are
separate PRs (#63, next).
Test
GOWORK=off go build ./bin/mail/... ./internal/mailconv/...passes.