about summary refs log tree commit diff
path: root/mmkdir
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-06-20 14:17:24 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-06-20 14:17:24 +0200
commit8dd2dd58354f3fec2a948c3a007fc7fdb0ae6c73 (patch)
tree330b5e0b80ab63bd99e2f57a63a04ee5507810e5 /mmkdir
parentc4a97ff4309d634e1e21758cff17820704250dd3 (diff)
downloadmblaze-8dd2dd58354f3fec2a948c3a007fc7fdb0ae6c73.tar.gz
mblaze-8dd2dd58354f3fec2a948c3a007fc7fdb0ae6c73.tar.xz
mblaze-8dd2dd58354f3fec2a948c3a007fc7fdb0ae6c73.zip
mmkdir: make official command
Diffstat (limited to 'mmkdir')
-rwxr-xr-xmmkdir9
1 files changed, 9 insertions, 0 deletions
diff --git a/mmkdir b/mmkdir
new file mode 100755
index 0000000..26d01ff
--- /dev/null
+++ b/mmkdir
@@ -0,0 +1,9 @@
+#!/bin/sh
+# mmkdir DIRS... - create new maildirs
+
+r=0
+for dir; do
+	mkdir -p -m 0700 $dir/cur $dir/new $dir/tmp || r=1
+done
+
+exit $r