<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>portal block does not list user defined rules</title> 
  <pubDate>Fri, 10 Apr 2026 17:02:37 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/10657</link> 
  <atom:link rel="self" type="application/rss+xml" title="portal block does not list user defined rules" href="https://bugs.horde.org/ticket/10657/rss" /> 
  <description>portal block does not list user defined rules</description> 
 
   
   
  <item> 
   <title>the following patch adds the user rules to the portal block:</title> 
   <description>the following patch adds the user rules to the portal block:

diff --git a/ingo/lib/Block/Overview.php b/ingo/lib/Block/Overview.php
index 9325986..e5b1fe5 100644
--- a/ingo/lib/Block/Overview.php
+++ b/ingo/lib/Block/Overview.php
@@ -34,7 +34,7 @@ class Ingo_Block_Overview extends Horde_Core_Block
         $html = &#039;&lt;!--a75c305b1c0a6022--&gt;&lt;table width=&quot;100%&quot; height=&quot;100%&quot;&gt;&#039;;
         $html_pre = &#039;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&#039;;
         $html_post = &#039;&lt;/td&gt;&lt;/tr&gt;&#039;;
-        foreach ($filters-&gt;getFilterList() as $filter) {
+        foreach ($filters-&gt;getFilterList() as $rule_number =&gt; $filter) {
             if (!empty($filter[&#039;disable&#039;])) {
                 $active = _(&quot;inactive&quot;);
             } else {
@@ -97,6 +97,13 @@ class Ingo_Block_Overview extends Horde_Core_Block
                         _(&quot;Spam Filter&quot;) . &#039;&lt;/a&gt; &#039; . $active . $html_post;
                 }
                 break;
+
+            default:
+               $editurl = Horde::url(&#039;rule.php&#039;)-&gt;copy()-&gt;add(array(&#039;edit&#039; =&gt; $rule_number, &#039;actionID&#039; =&gt; &#039;rule_edit&#039;));
+               $html .= $html_pre . &#039;&lt;/td&gt;&lt;td&gt;&#039; .
+                       Horde::link($editurl, sprintf(_(&quot;Edit %s&quot;), $filter[&#039;name&#039;])) .
+                       $filter[&#039;name&#039;] . &#039;&lt;/a&gt; &#039; . $active . $html_post;
+                break;
             }
 
         }
</description> 
   <pubDate>Fri, 14 Oct 2011 10:10:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10657#t68205</link> 
  </item> 
   
  <item> 
   <title>The patch doesn&#039;t apply, please upload a patch file, don&#039;t p</title> 
   <description>The patch doesn&#039;t apply, please upload a patch file, don&#039;t paste it. Also, the order of the rules doesn&#039;t seem to be the same on the overview page and the block. Inactive special rules are not displayed correctly. And finally, this is making the block rather confusing when you have large lists, so I&#039;m not sure if it&#039;s a good idea at all to include non-special rules too.</description> 
   <pubDate>Mon, 31 Oct 2011 18:36:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10657#t68462</link> 
  </item> 
   
  <item> 
   <title>&gt; The patch doesn&#039;t apply, please upload a patch file, don&#039;t</title> 
   <description>&gt; The patch doesn&#039;t apply, please upload a patch file, don&#039;t paste it. 
&gt; Also, the order of the rules doesn&#039;t seem to be the same on the 
&gt; overview page and the block. Inactive special rules are not displayed 
&gt; correctly. And finally, this is making the block rather confusing 
&gt; when you have large lists, so I&#039;m not sure if it&#039;s a good idea at all 
&gt; to include non-special rules too.

See, it is confusing to me, to see those five special rules, of which only Spam is active for me. And then there are all those non-special (user defined) rules that I toggle regularly, which are not displayed.
Maybe a switch to turn this on might be a good solution for the portal block.
I will send you the patch, when we have agreed on something.</description> 
   <pubDate>Thu, 03 Nov 2011 09:09:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10657#t68569</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
