[cvs] [Wiki] changed: IngoMulti

Jan Schneider jan at horde.org
Fri Jul 29 08:10:41 PDT 2005


jan  Fri, 29 Jul 2005 08:10:41 -0700

Modified page: http://wiki.horde.org/IngoMulti
New Revision:  1.5
Change log:  Add "replace" example, style.

@@ -1,13 +1,21 @@
-To be able to use two or more backends in Ingo.
++ How 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
+First copy your existing Ingo directory to a directory with the new name. Change to horde base directory, then run:
+<code>
+cp -R ingo imgo
 cd 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 INGO IMGO -- `find . -type f`
+</code>
+
+Otherwise you can for example run:
+<code>
 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
@@ -42,33 +50,28 @@
 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.
+Copy Ingo's icon using the new name:
+<code>
+cp imgo/themes/graphics/ingo.png imgo/themes/graphics/imgo.png
+</code>
 
-I have used imap in the first ingo and procmail in imgo.
+Edit {{imgo/config/backend.php}} for the backend to use for the second ingo.
 
-edit
-horde/config/registry.php
-
-add the following below ingo
+I have used imap in the first ingo and procmail in imgo.
 
+Edit {{horde/config/registry.php}} and 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/showWhitelist', 'mail/applyFilters', 'mail/canApplyFilters', 'mail/showFilters'),
     'menu_parent' => 'imp'
 );
 </code>
 


More information about the cvs mailing list