I found this script but I do not think it is correct
#!/bin/sh
VPOPDOMAINS="/home/vpopmail/domains"
if [[ "$2" = "-d" ]]; then
user=`eval echo $3 | cut -f 1 -d "@"`
domain=`eval echo $3 | cut -f 2 -d "@"`
cd $VPOPDOMAINS/"$domain"/"$user"
fi
/usr/local/bin/safecat "$1"/tmp "$1"/new 1>/dev/null
I do not even have safecat on my system (centos 5.4) any suggestions?
I used this one
#!/bin/bash
# "Reading" variables.
if [ "$1" == "-d" ]; then
USER=`echo $2 | sed 's/@/ /g' | awk '{print $1}'`
DOMAIN=`echo $2 | sed 's/@/ /g' | awk '{print $2}'`
EXT=$USER HOST=$DOMAIN /home/vpopmail/bin/vdelivermail '' $2
else
USER=`echo $1 | sed 's/@/ /g' | awk '{print $1}'`
DOMAIN=`echo $1 | sed 's/@/ /g' | awk '{print $2}'`
EXT=$USER HOST=$DOMAIN /home/vpopmail/bin/vdelivermail '' $1
fi
Anyone has a better option?
Thanks
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user