<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="http://bugs.horde.org/themes/feed-rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <title>convert_prefs_to_sql.php results in duplicate blacklist / whitelist rules</title>
  <pubDate>Sat, 05 Jul 2008 19:49:20 -0400</pubDate>
  <link>http://bugs.horde.org/ticket/6182</link>
  <atom:link rel="self" type="application/rss+xml" title="convert_prefs_to_sql.php results in duplicate blacklist / whitelist rules" href="http://bugs.horde.org/ticket/6182/rss" />
  <description>convert_prefs_to_sql.php results in duplicate blacklist / whitelist rules</description>

  
  
  <item>
   <title>After running convert_prefs_to_sql.php, I ended up with two </title>
   <description>After running convert_prefs_to_sql.php, I ended up with two sets of &quot;Whitelist / Blacklist&quot; rules in positions 1-4.  It seems to happen randomly.. it worked for my account right now, but other users in this batch have the issue:

+---------+------------+-----------+-------------+------------+------------+-----------------+--------------+-----------+-------------+------------+
| rule_id | rule_owner | rule_name | rule_action | rule_value | rule_flags | rule_conditions | rule_combine | rule_stop | rule_active | rule_order |
+---------+------------+-----------+-------------+------------+------------+-----------------+--------------+-----------+-------------+------------+
|       1 | amw        | Whitelist |           9 | NULL       |       NULL | NULL            |         NULL |      NULL |           1 |          1 |
|       3 | amw        | Blacklist |           7 |            |       NULL | NULL            |         NULL |      NULL |           1 |          3 |
|       6 | amw        | Whitelist |           9 |            |          0 | a:0:{}          |            1 |         1 |           1 |          6 |
|       7 | amw        | Blacklist |           7 |            |          0 | a:0:{}          |            1 |         1 |           0 |          7 |
+---------+------------+-----------+-------------+------------+------------+-----------------+--------------+-----------+-------------+------------+
4 rows in set (0.00 sec)

This was a freshly created set of ingo_ tables, and the original horde_prefs ingo rules pref don't have  multiple blacklist and whitelist entries.</description>
   <pubDate>Thu, 31 Jan 2008 12:25:38 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6182#t41742</link>
  </item>
  <item>
   <title>The entry from horde_prefs that generated that set of rules </title>
   <description>The entry from horde_prefs that generated that set of rules is..

ingo  	auto_update  	1
ingo 	rules 	

Array
(
    [0] =&gt; Array
        (
            [name] =&gt; Whitelist
            [action] =&gt; 9
            [disable] =&gt; 
        )

    [1] =&gt; Array
        (
            [name] =&gt; Blacklist
            [action] =&gt; 7
            [disable] =&gt; 1
        )

    [2] =&gt; Array
        (
            [name] =&gt; machinemail
            [combine] =&gt; 2
            [conditions] =&gt; Array
                (
                    [0] =&gt; Array
                        (
                            [field] =&gt; From
                            [type] =&gt; 1
                            [match] =&gt; contains
                            [value] =&gt; root from scratch
                        )

                    [1] =&gt; Array
                        (
                            [field] =&gt; From
                            [type] =&gt; 1
                            [match] =&gt; contains
                            [value] =&gt; root@example.edu
                        )

                    [2] =&gt; Array
                        (
                            [field] =&gt; From
                            [type] =&gt; 1
                            [match] =&gt; contains
                            [value] =&gt; the root of all evil
                        )

                    [3] =&gt; Array
                        (
                            [field] =&gt; From
                            [type] =&gt; 1
                            [match] =&gt; contains
                            [value] =&gt; nefu-monitor
                        )

                    [4] =&gt; Array
                        (
                            [field] =&gt; From
                            [type] =&gt; 1
                            [match] =&gt; contains
                            [value] =&gt; flume
                        )

                )

            [action-value] =&gt; vacationfilter
            [action] =&gt; 2
            [stop] =&gt; 1
            [flags] =&gt; 0
            [disable] =&gt; 1
        )

    [3] =&gt; Array
        (
            [name] =&gt; ITCS SpamBox
            [combine] =&gt; 1
            [conditions] =&gt; Array
                (
                    [0] =&gt; Array
                        (
                            [field] =&gt; X-DSPAM-Result
                            [type] =&gt; 1
                            [match] =&gt; is
                            [value] =&gt; Spam
                        )

                )

            [action-value] =&gt; SpamBox
            [action] =&gt; 2
            [stop] =&gt; 1
            [flags] =&gt; 0
        )

)

ingo 	whitelist 	

Array
(
    [0] =&gt; address@example.com
    [1] =&gt; address@example.net
    [2] =&gt; address@example.org
)
</description>
   <pubDate>Thu, 31 Jan 2008 12:35:40 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6182#t41743</link>
  </item>
  <item>
   <title>Fixed.</title>
   <description>Fixed.</description>
   <pubDate>Thu, 28 Feb 2008 13:35:23 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6182#t43253</link>
  </item>
  

 </channel>
</rss>
