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

mdirs: add Maildir profile key #245

Closed
wants to merge 1 commit into from

Conversation

meudwy
Copy link
Contributor

@meudwy meudwy commented Jul 25, 2023

When mdirs is executed without any arguments, look for the Maildir key in the profile and use that instead (if set).

@meudwy
Copy link
Contributor Author

meudwy commented Jul 25, 2023

I appreciate that this patch might not be useful for everyone's usage of mblaze, but for mine it reduces lots of keystrokes when constantly typing mdirs ~/mail.

It could also be improved to support tilde/variable expansion of directory name supplied in profile.

@leahneukirchen
Copy link
Owner

Probably reasonable. Also bump manpage date.

@meudwy
Copy link
Contributor Author

meudwy commented Jul 25, 2023

Resolved conflicts and also added tilde expansion (to match Drafts and Outbox keys which also do the same).

@leahneukirchen
Copy link
Owner

two minor style nits, the codebase generally uses 0 instead of NULL and maildir+2 instead of &maildir[2].

When `mdirs` is executed without any arguments, look for the `Maildir`
key in the profile and use that instead (if set).
@meudwy
Copy link
Contributor Author

meudwy commented Jul 25, 2023

Sorry. I have been browsing the code today so should have noticed. Fixed.

@meudwy meudwy deleted the mdirs-profile branch July 27, 2023 14:18
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.

None yet

2 participants