| Article: |
Sanitizing Mail on Panther Server | |
| Subject: | BTW kids, it's case-sensitive | |
| Date: | 2004-03-03 11:50:28 | |
| From: | juhnke | |
|
Response to: BTW kids, it's case-sensitive
|
||
|
Loganj! Thanks for this script. We've been having a terrible time with the case sensitivity issue. We've run into a strange catch. It seems with this case script in place Spamassassin (through spamd) is no longer able to move the detected spam to the appropriate folder.
|
||
Showing messages 1 through 2 of 2.
-
BTW kids, it's case-sensitive
2004-05-11 10:24:54 loganj1 [Reply | View]
Hmmmm, in the script above replace "loganj" with "postmaster" or someone that you want to be notified about errors. I didn't post this script originally because it's world class ugly, but I haven't had time to improve it - anyone with a better solution?
-
BTW kids, it's case-sensitive
2004-05-11 10:06:35 loganj1 [Reply | View]
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



