#!/bin/bash

cd /home

for i in *
do
/root/scripts/uw-mbox2courier-maildir.pl $i
done

cd /home/httpd/webmail/data
for j in *.pref
do
sed s/Sent/INBOX.Sent/g $j > /tmp/webmail-$j
mv /tmp/webmail-$j /home/httpd/webmail/data/$j
rm /tmp/webmail-$j
sed s/Trash/INBOX.Trash/g $j > /tmp/webmail-$j
mv /tmp/webmail-$j /home/httpd/webmail/data/$j
rm /tmp/webmail-$j
chown httpd.httpd $j
done



