6.0.0-git
2024-04-24

Diff for IngoMulti between 3 and 4

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



change to horde base directory



<code type="bash">

#!/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

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



<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/sh

owWhitelist',    '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