<?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>Creating a new folder for spam doesn&#039;t work</title> 
  <pubDate>Fri, 10 Apr 2026 13:26:30 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6640</link> 
  <atom:link rel="self" type="application/rss+xml" title="Creating a new folder for spam doesn&#039;t work" href="https://bugs.horde.org/ticket/6640/rss" /> 
  <description>Creating a new folder for spam doesn&#039;t work</description> 
 
   
   
  <item> 
   <title>Creating a new folder for spam does not work. If I select th</title> 
   <description>Creating a new folder for spam does not work. If I select the option for creating a new folder in ingo/spam.php, I get the window asking for the name of the spam folder OK, the script gets activated - with an empty string as the argument to fileinto, and with no new folder created on the imap server. Tracing the error in ingo/spam.php, I found something weird in the if-elsif-construction in lines 81-122. Apparently, the new spam folder gets created and set as the spam folder only in case the test $form-&gt;validate($vars) in line 82 fails. But if the script is handling the form request created by the new_folder.js javascript, the test succeeds, and $spam-&gt;setSpamFolder($vars-&gt;get(&#039;folder&#039;)) (line 83) sets the spam folder to the value of &#039;folder&#039; - i.e., an empty string.



Apparently, the validate() method should return false if all required variables aren&#039;t set. But it appears to be ok for the method that the variables are (implicitely) empty...</description> 
   <pubDate>Wed, 23 Apr 2008 12:25:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6640#t44816</link> 
  </item> 
   
  <item> 
   <title>Can you try this patch, please?

http://cvs.horde.org/diff.p</title> 
   <description>Can you try this patch, please?

http://cvs.horde.org/diff.php?r1=1.14&amp;r2=1.15&amp;f=ingo%2Fspam.php</description> 
   <pubDate>Thu, 24 Apr 2008 05:15:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6640#t44865</link> 
  </item> 
   
  <item> 
   <title>&gt; Can you try this patch, please?

&gt; http://cvs.horde.org/di</title> 
   <description>&gt; Can you try this patch, please?

&gt; http://cvs.horde.org/diff.php?r1=1.14&amp;r2=1.15&amp;f=ingo%2Fspam.php



Now I can successfully create a new folder, but it doesn&#039;t end up as the spam folder (the script only creates the new folder). Moreover, if I try to select the newly created folder as the spam folder immediately after creating it this way, I get an error such as &#039;WarningThe folder &quot;maym&quot; already exists&#039; (and the spam folder isn&#039;t changed). Same if I try to select the folder again directly after getting the error. If I return to the rules list, go back to spam.php and then select my new folder as the spam folder, it works OK.</description> 
   <pubDate>Thu, 24 Apr 2008 07:16:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6640#t44870</link> 
  </item> 
   
  <item> 
   <title>Okay, another try:

http://cvs.horde.org/diff.php?r1=1.15&amp;r2</title> 
   <description>Okay, another try:

http://cvs.horde.org/diff.php?r1=1.15&amp;r2=1.16&amp;f=ingo%2Fspam.php



(I don&#039;t have this set up, sorry for the trial-and-error)</description> 
   <pubDate>Fri, 25 Apr 2008 04:17:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6640#t44913</link> 
  </item> 
   
  <item> 
   <title>This one appears to work. Thanks for replying so fast. :)</title> 
   <description>This one appears to work. Thanks for replying so fast. :)</description> 
   <pubDate>Fri, 25 Apr 2008 09:06:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6640#t44928</link> 
  </item> 
   
  <item> 
   <title>Thanks for your quick feedback!</title> 
   <description>Thanks for your quick feedback!</description> 
   <pubDate>Fri, 25 Apr 2008 14:47:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6640#t44936</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Can you try this patch, please?

&gt;&gt; http://cvs.horde.org/</title> 
   <description>&gt;&gt; Can you try this patch, please?

&gt;&gt; http://cvs.horde.org/diff.php?r1=1.14&amp;r2=1.15&amp;f=ingo%2Fspam.php

&gt;

&gt; Now I can successfully create a new folder, but it doesn&#039;t end up as 

&gt; the spam folder (the script only creates the new folder). Moreover, 

&gt; if I try to select the newly created folder as the spam folder 

&gt; immediately after creating it this way, I get an error such as 

&gt; &#039;WarningThe folder &quot;maym&quot; already exists&#039; (and the spam folder isn&#039;t 

&gt; changed). Same if I try to select the folder again directly after 

&gt; getting the error. If I return to the rules list, go back to spam.php 

&gt; and then select my new folder as the spam folder, it works OK.



I upgraded to -RC4, and now seem to be back in this situation (it no logner works correctly). I tried re-applying the patch that did work; it didn&#039;t fit. I also tried to un-apply the older patch in case that had somehow found its way to the -RC4 instead of the newer one, but that didn&#039;t work, either.</description> 
   <pubDate>Wed, 21 May 2008 10:00:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6640#t45431</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; Can you try this patch, please?

&gt;&gt;&gt; http://cvs.horde.or</title> 
   <description>&gt;&gt;&gt; Can you try this patch, please?

&gt;&gt;&gt; http://cvs.horde.org/diff.php?r1=1.14&amp;r2=1.15&amp;f=ingo%2Fspam.php

&gt;&gt;

&gt;&gt; Now I can successfully create a new folder, but it doesn&#039;t end up as

&gt;&gt; the spam folder (the script only creates the new folder). Moreover,

&gt;&gt; if I try to select the newly created folder as the spam folder

&gt;&gt; immediately after creating it this way, I get an error such as

&gt;&gt; &#039;WarningThe folder &quot;maym&quot; already exists&#039; (and the spam folder isn&#039;t

&gt;&gt; changed). Same if I try to select the folder again directly after

&gt;&gt; getting the error. If I return to the rules list, go back to spam.php

&gt;&gt; and then select my new folder as the spam folder, it works OK.

&gt;

&gt; I upgraded to -RC4, and now seem to be back in this situation (it no 

&gt; logner works correctly). I tried re-applying the patch that did work; 

&gt; it didn&#039;t fit. I also tried to un-apply the older patch in case that 

&gt; had somehow found its way to the -RC4 instead of the newer one, but 

&gt; that didn&#039;t work, either.



...moreover, the spam.php in -RC3 that did work with the patch and the spam.php in -RC4 that doesn&#039;t work appear to be identical... I&#039;m confused.

</description> 
   <pubDate>Wed, 21 May 2008 10:48:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6640#t45434</link> 
  </item> 
   
  <item> 
   <title>&gt; ...moreover, the spam.php in -RC3 that did work with the p</title> 
   <description>&gt; ...moreover, the spam.php in -RC3 that did work with the patch and 

&gt; the spam.php in -RC4 that doesn&#039;t work appear to be identical... I&#039;m 

&gt; confused.



...OK, this is even more confusing: what happens with horde rc3 and rc4 /is/ identical, that is: the folder gets created OK; the script gets created ok (if spam filter is clicked to be active - if it isn&#039;t, then when I click it to be active, I get the correct script). But in the &quot;Folder to receive spam&quot; field there is still the text &quot;Select target folder&quot;, not the name of the newly created folder. And if I try to select the newly created folder (that&#039;s really already selected), Ingo tries to recreate it (and fails). However, the &quot;Script&quot; page shows the correct script and spam folder. Then, if I log out and log in, the &quot;Script&quot; page shows a spam filter script which has as its spam target folder the folder that is set in IMP preferences, that is, the Spam folder setting... and the &quot;Spam&quot; page shows only the text &quot;Select target folder&quot;. There appears to be something wrong with being able to set the spam folder both in IMP preferences and in spam.php... if I set the spam folder to be None in IMP preferences, then it turns to &quot;&quot; in the &quot;current&quot; script after re-login... The new spam folder creation javascript in IMP options appears to work better than the one in spam.php, but it doesn&#039;t activate spam filtering or anything... maybe it would be possible to take it away from IMP options and put similar logic into spam.php or something?</description> 
   <pubDate>Wed, 21 May 2008 11:23:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6640#t45435</link> 
  </item> 
   
  <item> 
   <title>Can you try if the commit in bug #7033 fixes saving the spam</title> 
   <description>Can you try if the commit in bug #7033 fixes saving the spam folder preference?</description> 
   <pubDate>Mon, 07 Jul 2008 09:05:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6640#t47343</link> 
  </item> 
   
  <item> 
   <title>&gt; Can you try if the commit in bug #7033 fixes saving the sp</title> 
   <description>&gt; Can you try if the commit in bug #7033 fixes saving the spam folder 

&gt; preference?



Apparently, yes. That is, it seems to separate the INGO preference from the IMP preference so that if I save the spam folder in INGO, it doesn&#039;t get overwritten (from the IMP preference) the next time I log in. However, the IMP idea of the spam folder doesn&#039;t change if I change the spam folder in INGO - which might be confusing for the users, who don&#039;t see INGO and IMP as two separate applications but rather see INGO as &quot;the filter settings for IMP&quot;.



Thanks for the patch. :)



(Sorry for not responding earlier, I was on a /long/ vacation and only returned this week.)</description> 
   <pubDate>Thu, 14 Aug 2008 10:30:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6640#t48195</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
