refactor: unify compact message format via FormatCompact #9

Closed
heiko wants to merge 2 commits from refactor/compact-format into fix/idle
Owner

Summary

  • Extract scanner.FormatCompact(CompactFields) as single definition for compact message display
  • All output paths (--verbose, --debug=scan per-message, matched-message, --list) now use the same format: uid | date | [mailbox] | from | subject | [attachments]
  • Annotate config.yaml.example with comments explaining each setting

Depends on: #8 (fix/idle)

Test plan

  • go test ./... passes
  • golangci-lint run clean
  • ./xr-invoiced --list shows unified pipe-delimited format
  • ./xr-invoiced -v --force shows same format with uid + attachments
## Summary - Extract `scanner.FormatCompact(CompactFields)` as single definition for compact message display - All output paths (--verbose, --debug=scan per-message, matched-message, --list) now use the same format: `uid | date | [mailbox] | from | subject | [attachments]` - Annotate `config.yaml.example` with comments explaining each setting **Depends on:** #8 (fix/idle) ## Test plan - [x] `go test ./...` passes - [x] `golangci-lint run` clean - [x] `./xr-invoiced --list` shows unified pipe-delimited format - [x] `./xr-invoiced -v --force` shows same format with uid + attachments
Extract FormatCompact(CompactFields) as the single definition for the
compact message display (uid | date | [mailbox] | from | subject |
[attachments]). Used by --verbose, --debug=scan, matched-message
output, and --list.

Also annotates config.yaml.example with comments explaining each setting.
Author
Owner

you lost the uid for --list

you lost the uid for --list
heiko force-pushed refactor/compact-format from ff3d6753ba to 49f321fc27 2026-05-11 18:21:41 +02:00 Compare
heiko force-pushed refactor/compact-format from 49f321fc27 to e8c99cb4aa 2026-05-11 18:24:49 +02:00 Compare
heiko force-pushed refactor/compact-format from e8c99cb4aa to 544d6d2541 2026-05-11 18:28:34 +02:00 Compare
heiko force-pushed refactor/compact-format from 544d6d2541 to 24c438f2a8 2026-05-11 18:40:10 +02:00 Compare
heiko closed this pull request 2026-05-11 18:45:24 +02:00

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
IUS/xr-invoiced!9
No description provided.