Van de Voorde Jeroen wrote:
> 
> Hi all,
> 
> Got a rather anoying problem with Communicator4.7.
> My inbox is split in three folders, Linux Alpha, Laptop and Newbie it is
> that
> way from comm4.51 or so, but today I want to look at the mails from
> Linux newbie
> and Netscape just closes down...?
> I can go in all the other folders, just not in the newbie folder.
> I've restarted X a few times, changed color depth , nothing helps...
> Anyone with a solution?
> 
The solution is obvious: If the folder worked in 4.51, start
Communicator 4.51, open the folder, compact it (should normalize its
content so 4.7 will not hick up again). And if that does not work, stick
with 4.51, the changes from 4.5 to 4.6 or 4.7 are rather minor.

And if you say now, that you have upgraded 4.51 to 4.7 and do not have
the old version anymore, because your distribution makes different ns
versions collide (like Debian does :-(), then I can just say:

On my box there are ns versions 3.04, 4.07, 4.08, 4.51, 4.6, 4.61 and
4.7 happily living in peace side-by-side in /opt/netscape/<version> with
the following little script:

#!/bin/bash

NS_DIR="/opt/netscape"
NS_FALLBACK_VERSION="4.61"

if [ "$(basename $0)" = 'netscape' ]; then

    if [ -f "$HOME/.netscape/preferences.js" ]; then

        NS_VERSIONLINE=$(grep browser.startup.license_accept \
             "$HOME/.netscape/preferences.js")
        NS_VERSION=$(expr match "$NS_VERSIONLINE" \
'.+\([3-9]\.[0-9]+\)')

    elif [ -f "$HOME/.netscape/preferences" ]; then

        NS_VERSIONLINE=$(grep "Version:" "$HOME/.netscape/preferences")
        NS_VERSION=$(expr match "$NS_VERSIONLINE" '.+\([2-9]\.[0-9]+\)')

    else

        NS_VERSION="$NS_FALLBACK_VERSION"

    fi

else

    NS_VERSION="$(expr match "$0" '.+netscape-\([0-9]+\.[0-9]+\)')"

fi

if [ -z "$NS_VERSION" -o ! -x "$NS_DIR/$NS_VERSION/netscape" ]; then

    NS_VERSION="$NS_FALLBACK_VERSION"

fi

# delete disk cache
if [ -d "$HOME/.netscape/cache" ]; then
  rm -rf $HOME/.netscape/cache/*
fi

export MOZILLA_HOME="$NS_DIR/$NS_VERSION"

$MOZILLA_HOME/netscape "$@"

# delete disk cache
if [ -d "$HOME/.netscape/cache" ]; then
  rm -rf $HOME/.netscape/cache/*
fi

exit 0

NS Communicators are most easily installed from the tar balls: Nothing
more than extracting the archives and moving some files around.
  The above script should be installed as "netscape" in a directory
searched by $PATH, e.g. /usr/local/bin. You then create a symbolic link
to this file for each version you have installed, like this

# ln -s netscape netscape-<version>

or like this:

for i in (cd /opt/netscape; ls); do
        ln -s netscape netscape-$i
done

Marc

-- 
Marc Mutz <[EMAIL PROTECTED]>                    http://marc.mutz.com/
University of Bielefeld, Dep. of Mathematics / Dep. of Physics

PGP-keyID's:   0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)

Reply via email to