Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canonicalize init --maildir argument after expanding #2738

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

rabuu
Copy link
Contributor

@rabuu rabuu commented Aug 6, 2024

Hey,
when I tried to set up mu I ran into the following issue:
I ran mu init --maildir ~/mail which worked fine but when I tried to do mu index
no mails where found. After some investigating I noticed mu stores my maildir as /home/USER//mail but then disregards mails with the canonical path /home/USER/mail/... because they don't have this exact prefix.

I thought it would make sense to store the maildir (which is already ensured to be absolute) as canonical path too and therefore canonicalize the mu init --maildir argument after expanding.

This fixes my problem, I hope it doesn't break something else. Feedback is appreciated. :)

Ensure that `maildir` is an absolute and _canonical_ path when user passes
a custom maildir path using `mu init --maildir PATH`
@djcb djcb merged commit e6c32f6 into djcb:master Aug 6, 2024
@djcb
Copy link
Owner

djcb commented Aug 6, 2024

Looks good, merged. Thanks.

@rabuu rabuu deleted the canonicalize-maildir branch August 6, 2024 20:54
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.

2 participants