leahneukirchen / mblaze

Unix utilities to deal with Maildir
Other
419 stars 48 forks source link

mdirs: add Maildir profile key #245

Closed meudwy closed 11 months ago

meudwy commented 11 months ago

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

meudwy commented 11 months ago

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 commented 11 months ago

Probably reasonable. Also bump manpage date.

meudwy commented 11 months ago

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

leahneukirchen commented 11 months ago

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

meudwy commented 11 months ago

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