summaryrefslogtreecommitdiffstats
path: root/bashrc/bin/maildirmake
blob: 0cd170e5d4a9c01809903b0a23f3f9ab2274e236 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
# create maildir style directories

if [[ -z "$1" ]] ; then
	echo "Usage:"
	echo -en "\t"
	echo "$(basename $0) <directory>"
	exit 1
fi

mkdir -m 0700 $1/{,cur,new,tmp}