6.0.0-git
2022-11-27
Last Modified 2005-06-17 by Guest

To be able to use two or more backends in Ingo.

change to horde base directory


#!/usr/bin/bash

#Script start

cp ingo imgo -R

cd imgo

perl -p -i -e "s/Ingo/Imgo/g" * *

perl -p -i -e "s/ingo/imgo/g" * *

perl -p -i -e "s/INGO/IMGO/g" * *

cd lib

perl -p -i -e "s/Ingo/Imgo/g" * *

perl -p -i -e "s/ingo/imgo/g" * *

perl -p -i -e "s/INGO/IMGO/g" * *

cd Script

perl -p -i -e "s/Ingo/Imgo/g" * *

perl -p -i -e "s/ingo/imgo/g" * *

perl -p -i -e "s/INGO/IMGO/g" * *

cd ..

cd Driver

perl -p -i -e "s/Ingo/Imgo/g" * *

perl -p -i -e "s/ingo/imgo/g" * *

perl -p -i -e "s/INGO/IMGO/g" * *

cd ..

cd Storage

perl -p -i -e "s/Ingo/Imgo/g" * *

perl -p -i -e "s/ingo/imgo/g" * *

perl -p -i -e "s/INGO/IMGO/g" * *

cd ../../

cd templates

perl -p -i -e "s/Ingo/Imgo/g" * *

perl -p -i -e "s/ingo/imgo/g" * *

perl -p -i -e "s/INGO/IMGO/g" * *

cd ..

cp imgo/themes/graphics/ingo.png imgo/themes/graphics/imgo.png

echo "end"

#script end

There may be a better way of finding and replacing words in all the subfolders, please feel free to edit this page and put that method here.

edit

imgo/config/backend.php for the backend to use for the second ingo.

I have used imap in the first ingo and procmail in imgo.

edit

horde/config/registry.php

add the following below ingo


$this->applications['imgo'] = array(

    'fileroot' => dirname(__FILE__) . '/../imgo',

    'webroot' => $this->applications['horde']['webroot'] . '/imgo',

    'name' => _("Mail Actions"),

    'status' => 'active',

    'provides' => array('mail/blacklistFrom', 'mail/showBlacklist', 'mail/whitelistFrom',

    'mail/showWhitelist', 'mail/applyFilters', 'mail/canApplyFilters', 'mail/showFilters'),

    'menu_parent' => 'imp'

);

Now you would be able to use two filter backends. In case you want more, you can always make one more copy of ingo.

Jigish