6.0.0-git
2024-04-27

Diff for IngoMulti between 5 and 6

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



changeFirst copy your existing Ingo directory to a directory with the new name. Change to horde base directorydirectory, then run:

<code>

cp -R ingo imgo

<code type="bash">

#!/usr/bin/bash

#Script start

cpcd imgo

</code>



Then replace all occurences of the "Ingo" string with a new name, we use "Imgo" as an example here.



If you have the {{replace}} command installed, that comes with the !MySQL clients, you can simply run:

<code>

replace Ingo Imgo 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 ScriptINGO IMGO -- `find . -type f`

</code>



Otherwise you can for example run:

<code>

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

perl*

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" * *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 ..


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 rule

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 lib/Driver

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

</code>



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



Copy Ingo's icon using the new name:

<code>

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

</code>



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



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



edit

horde/config/registry.php



add



Edit {{horde/config/registry.php}} and add the following below ingo



<code type="php">ingo:

$this->applications['imgo']<code type="php">

$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'

);

</code>



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