We've expanded our news coverage and improved our search! Visit
oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
Sanitizing Mail on Panther Server
|
| Subject: |
|
BTW kids, it's case-sensitive |
| Date: |
|
2004-05-11 10:06:35 |
| From: |
|
loganj1
|
Response to: BTW kids, it's case-sensitive
|
|
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
|