Index: [Article Count Order] [Thread]

Date:  Mon, 17 Apr 2006 15:56:01 +0200
From:  Ren=?ISO-8859-1?B?6SA=?=M=?ISO-8859-1?B?+A==?=lsted <molsted (at mark) iweb.dk>
Subject:  [coba-e:04711] Re: bugfix CMU
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <C0696B11.A177%molsted (at mark) iweb.dk>
In-Reply-To:  <44439071.4070602 (at mark) rainstormconsulting.com>
X-Mail-Count: 04711

On 17/04/06 14:56, "Brian Rahill" <brian (at mark) rainstormconsulting.com> wrote:

> One other minor thing. We use Openwebmail on the 550 and on BQ. However the
> mbox symlinks don't
> transfer over with CMU.  It's because the symlinks created with OWM to
> saved-messages use a path
> like: /home/.sites/70/site4/.users/43/someusername/ etc. and obviously these
> numbers aren't the
> same on the new machine. I'm not sure if it's "fixable" with CMU but it would
> be great if the 
> symlinks were something more generic:
> /home/sites/www.example.com/users/someusername/ etc.
> 
> Thanks for all the great work!
> 
> Brian

Hi Brian
We have been using this script on RaQ550 restores:
fix-spool.sh:
#!/bin/sh

  for b in * ; do
    if [ "$b" = "*" ] ; then echo "No users here ..." ; break; fi
    cd $b
    if [ -L mbox ] ; then
      echo "Fixing $b mail spool..."
      rm mbox
      touch mbox
      ln -s mail/saved-messages mbox
      chown $b mbox
      chmod 0600 mbox
    fi
    cd ..
  done

From CLI:
cd /home/sites ; for a in *.*.* ; do echo $a ; cd $a/users ;
/home/fix-spool.sh ; cd /home/sites ; done


-- 
Rene Molsted