SquirrelMail 1.4.7 Released

hostpc.com

Verified User
Joined
Aug 2, 2003
Messages
1,178
Location
Schenectady, NY
ANNOUNCE: SquirrelMail 1.4.7 Released
Jul 04, 2006 by Tomas Kuliavas


The SquirrelMail Project Team is proud to announce the release of SquirrelMail 1.4.7.

This release contains some minor security updates and fixes. Details on all the changes in this release can be found in the ChangeLog.


Mostly just a bugfix release

http://www.squirrelmail.org
 
Is there a howto about updating the squirrelmail to 1.4.7?

Because I think I now how, but don't know for sure if this works:

File is located here:
/usr/local/directadmin/scripts/packages/squirrelmail-1.4.7.tar.gz

Script squirrelmail.sh:

Code:
#!/bin/sh
VERSION=1.4.7

DA_SCRIPTS=/usr/local/directadmin/scripts
TARFILE=${DA_SCRIPTS}/packages/squirrelmail-${VERSION}.tar.gz
WWWPATH=/var/www/html
REALPATH=${WWWPATH}/squirrelmail-$VERSION
ALIASPATH=${WWWPATH}/squirrelmail
HTTPDCONF=/etc/httpd/conf/httpd.conf
CONFIG=${REALPATH}/config/config.php
DA_HOSTNAME=`hostname`

OS=`uname`

if [ "$OS" = "FreeBSD" ]; then
        WGET=/usr/local/bin/wget
        TAR=/usr/bin/tar
        CHOWN=/usr/sbin/chown
        ROOTGRP=wheel
else
        WGET=/usr/bin/wget
        TAR=/bin/tar
        CHOWN=/bin/chown
        ROOTGRP=root
fi

if [ ! -e $TARFILE ]; then
        $WGET -O $TARFILE [url]http://files.directadmin.com/services/9.0/squirrelmail-[/url]${VERSION}.tar.gz
fi

#Extract the file
$TAR xzf $TARFILE -C $WWWPATH

#link it from a fake path:
/bin/rm -f $ALIASPATH
/bin/ln -sf squirrelmail-$VERSION $ALIASPATH

#install the proper config:
if [ ! -e $CONFIG ]; then
        /bin/cp -f ${REALPATH}/config/config_default.php $CONFIG

        /usr/bin/perl -pi -e 's/\$force_username_lowercase = false/\$force_username_lowercase = true/' $CONFIG
        /usr/bin/perl -pi -e "s/\'example.com\';/\\$\_SERVER\[\'HTTP_HOST\'\];\nwhile \(sizeof\(explode\(\'\.\', \\$\domain\)\) \> 2) {\n\t\\$\domain = substr(\\$\domain, strpos\(\\$\domain, \'\.\'\) \+ 1\);\n\}/" $CONFIG
        /usr/bin/perl -pi -e 's/\$show_contain_subfolders_option = false/\$show_contain_subfolders_option = true/' $CONFIG

        #STR="/usr/bin/perl -pi -e 's/example.com/$DA_HOSTNAME/' $CONFIG"
        #eval $STR;
fi

#set the permissions:
/bin/chmod -R 755 $REALPATH
$CHOWN -R root:${ROOTGRP} $REALPATH

/bin/chmod -R 700 $REALPATH/data
$CHOWN -R apache:apache $REALPATH/data

Now I wonder, does this work unpainfully when updating? :) Would be nice to know! It's a production server!
 
Last edited:
Hello,

To update:

cd /usr/local/directadmin/scripts

edit squirrelmail.sh and set:

VERSION=1.4.7

save, exit.. then run:

./squirrelmail.sh

;) (it downloads the file for you)

John
 
Hello John,

WHat about the abook en pref files of the users, does the sh script also cp this, i don't see that in the shell script

kind regards

martijn
 
Hello,

If you update your version of DA, you'll get a newer script which does. It has the lines:
Code:
if [ -e $ALIASPATH ]; then
        cp -f $ALIASPATH/data/* $REALPATH/data/
fi
just after the "tar xzf" command.

John
 
Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/squirrelmail-1.4.7/src/read_body.php on line 97

Caused by the latest update. Any configuration changes we should do to fix this?
 
In the update process the adrees book of the clients go away..how can update without loss the adress books?

Thanks
 
If you are using the latest version of DA, you should have the newer script that saves the address books.

If not, look up about 5 posts, it describes it there.

You'll still have them in the old directory, it uses symbolic links, so nothing is ever deleted.

John
 
Back
Top