Skip to content

importmaildir: sort messages by date first#351

Open
diresi wants to merge 1 commit into
mjl-:mainfrom
diresi:sorted-maildir-import
Open

importmaildir: sort messages by date first#351
diresi wants to merge 1 commit into
mjl-:mainfrom
diresi:sorted-maildir-import

Conversation

@diresi
Copy link
Copy Markdown

@diresi diresi commented May 8, 2025

maildir messages usually have timestamps in their filename indicating
the received date, if that's not the case mtime is used.

since we cannot assume the order of ReadDir() entries we have to read
all entries and sort them accordingly first.

fixes #341

maildir messages usually have timestamps in their filename indicating
the `received` date, if that's not the case mtime is used.

since we cannot assume the order of `ReadDir()` entries we have to read
all entries and sort them accordingly first.

fixes mjl-#341
@diresi diresi force-pushed the sorted-maildir-import branch from d316706 to 0a463f1 Compare May 8, 2025 18:25
@diresi
Copy link
Copy Markdown
Author

diresi commented May 8, 2025

How about this? Does this look meaningful? And Golang-ish enough?

@mjl-
Copy link
Copy Markdown
Owner

mjl- commented May 26, 2025

@diresi Thanks for the PR. Just wanted to let you know I did see it. I'm a bit busy, will get back to you about it.

TheNotary added a commit to TheNotary/mox that referenced this pull request Apr 13, 2026
mjl-#345 Auto-generate DKIM keys in Mox Helm chart

When dkim.autoGenerate.enabled is true and domains have no explicit
DKIM keys, a pre-install/pre-upgrade hook Job generates ed25519 + RSA
key pairs and stores them in a persistent Kubernetes Secret.

Changes:
- mjl-#346 Add dkim.autoGenerate values block and helper templates
- mjl-#347 Create DKIM keygen RBAC (ServiceAccount, Role, RoleBinding)
- mjl-#348 Create keygen ConfigMap (generate-dkim.sh) and Job hook
- mjl-#349 Modify secret.yaml to conditionally skip inline DKIM keys
- mjl-#350 Change deployment DKIM volume to projected volume
- mjl-#351 Refactor DNS hook to read generated public keys at runtime
- Fix pre-existing bug: deployment volume used list index instead of domain name

Backward compatible — dkim.autoGenerate.enabled defaults to false.
Precedence: inline privateKey > existingSecret > autoGenerate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maildir import seems to mess up order

2 participants