Commit Graph

13 Commits (master)

Author SHA1 Message Date
Meudwy 07d064fc11 mdirs: add Maildir profile key
When `mdirs` is executed without any arguments, look for the `Maildir`
key in the profile and use that instead (if set).

Closes: #245 [via git-merge-pr]
9 months ago
Tim Kuijsten 4763032430 pledge(2) all programs
All programs except mshow have a very tight set of promises. mshow
has a broad set of promises and might be a good future candidate
to further restrict using unveil(2).

This patch is based on commit 0300a112 by Alex Holst (dated
2017-12-07), which was proposed in GH PR #79.

* pledged mpick, mflow and mdate so that now all programs are pledged
* removed some unneeded promises and added some missing promises
* move err.h include and OpenBSD ifdef into a new xpledge.h
* cleaned up code aligning and whitespace

Closes: #179 [via git-merge-pr]
4 years ago
Leah Neukirchen 6dd0799aab mdirs: extract DT_* handling 4 years ago
Leah Neukirchen 113ac5a24d mdirs: add -a to list all subfolders, ignoring maildir++ convention
Based on a patch by Kylie McClain <kylie@somas.is>.
4 years ago
Leah Neukirchen f8fa6a1e0e mdirs: add -0 to separate folders by NUL characters
Idea by Mario Domgoergen <mdom@taz.de>.

Closes #159.
5 years ago
Leah Neukirchen 41098c3851 mdirs: reset cwd after each iteration
Else `mdirs dir1/a dir2/b` fails, as the first iteration remains in `dir1`.
Found by milliardo.
6 years ago
Leah Neukirchen 3e22345cfa mdirs: use blaze822.h 6 years ago
Leah Neukirchen 66d0eff12f style 7 years ago
Leah Neukirchen 2b4e3aa66d clean up whitespace 7 years ago
Christian Neukirchen 80763d98f9 mdirs: add usage 8 years ago
Christian Neukirchen 5d9663a980 guard DT_* usage
It's a shortcut anyway, just leave it out
8 years ago
Christian Neukirchen 50e2d1fc47 mdirs: need <limits.h> 8 years ago
Christian Neukirchen 9da61f69f7 really add mdirs 8 years ago