|
Sorry for the slow response. I actually use the script below, where the folder name is an optional parameter. You might need to visit the spamassassin scripts and change any $default delivery mechanism to the following ...
/usr/local/bin/deliver $user $foldername
# This is a front end script for the Cyrus "deliver" program
# that forces the username to lowercase, and formats a mailbox
# name properly (per RFC821) except that mailbox names can not
# have two adjacent spaces.
#
# usage: deliver $USER ["MailBoxName"]
#
if [ -z "$1" ]; then
/usr/bin/cyrus/bin/deliver -e -a loganj -m user/loganj;
else
user=`echo $1 | tr A-Z a-z`
mbox=`echo $2 | sed -e "s; ;\\\\\\ ;g"`
if [ -z "$2" ]; then
/usr/bin/cyrus/bin/deliver -e -a $user -m user/$user;
else
/usr/bin/cyrus/bin/deliver -e -a $user -m "user/$user/$mbox";
fi
fi
|