#!/bin/sh
# Note:	Although it's possible to run maildirmake with an alias, I
#	think this risks being confusing, which is why this script
#	is pedantic about requiring the username, not any alias, to
#	be specified. Remove the ishashuser line and associated return
#	status check if you don't want this pedantry!

if [ $# -ne 1 ]
then
  echo "Error - usage is as follows:"
  echo "   $0 <username>"
  exit 1
else
  sh -c "ishashuser $1"
  if [ $? -eq 0 ]
  then
    hashop "$1" maildirmake Maildir
  else
    echo "Error - $1 is not a user (alias or doesn't exist)"
    exit 2
  fi
fi
