6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/6/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#6640] Creating a new folder for spam doesn't work
*
Your Email Address
*
Spam protection
Enter the letters below:
. ._.. ,.__ .__ | | \./ [__)[__) |____|_ | [__)|
Comment
> 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->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->setSpamFolder($vars->get('folder')) (line 83) sets the spam > folder to the value of 'folder' - i.e., an empty string. > > > > Apparently, the validate() method should return false if all required > variables aren't set. But it appears to be ok for the method that the > variables are (implicitely) empty...
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers