Just read a post about what to do after installing courier. After installing courier
and changing my procmail.rc file to deliver to the maildirs I ran the script below.
This creates a MailDir directory for each user and converts the current mbox file to
MailDir format. You may have to adjust the paths and the default folders in the
script for your use.
#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/lib/courier-imap/bin
# Convert the /var/spool/mail/[user] mbox files to maildirs
# and create the default maildir folders for each user
for USER in `ls -1 /home/users`; do
MBOX="/var/spool/mail/$USER"
MAILDIR="/home/users/$USER/Maildir"
#
# Create the main Maildir and all the default folders. Make
# sure the folders have the corret permissions after creation.
#
echo "User: $USER"
maildirmake $MAILDIR
maildirmake -f 'Drafts' $MAILDIR
maildirmake -f 'Deleted Items' $MAILDIR
maildirmake -f 'Sent Items' $MAILDIR
chown -R "$USER.$USER" "/home/users/$USER"
#
# If the user has mail then convert it to the Maildir format
#
if [ -f "$MBOX" ]; then
formail -I 'From ' -s procmail -d $USER < $MBOX
fi
echo "Done."
done
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users