Skip to content

importmaildir: sort messages by date first#351

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

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

Conversation

@diresi
Copy link

@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
Author

diresi commented May 8, 2025

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

@mjl-
Copy link
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.

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