#!/bin/sh
#---------------------------------------------------------------------------
# Local configuration file for Binc IMAP.

# This script is by default executed right after the user has
# authenticated, before bincimapd is launched. The working directory
# is the same as that for the main Binc IMAP daemon. This script can
# be used for any task required to be run before a user is provided
# access to the mail store, such as creating the mail store, checking
# whether the account has been disabled, and so on.

#---------------------------------------------------------------------------
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307,
# USA.
set -a

#---------------------------------------------------------------------------
# Configuration
#---------------------------------------------------------------------------

#if [ -e .disabled ]; then
#    exit 111
#fi

#if [ ! -e $2 ]; then
#    mkdir $2
#fi

#if [ ! -e $2/INBOX ]; then
#    maildirmake $2/INBOX
#    echo ./$2/INBOX >> .qmail
#fi

#---------------------------------------------------------------------------
# End of configuration
#---------------------------------------------------------------------------
exec $@
