6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/17/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#5012] wrong trash folder options check in Message.php delete()
*
Your Email Address
*
Spam protection
Enter the letters below:
.___._..___.__ __ [__ | [__ [ __/ ` | _|_| [_./\__.
Comment
>> No, $prefs->getValue('trash_folder') will return the default value > >> from config/prefs.php when the user hasn't set a folder yet, and if > >> you haven't broken your system. > > > > I thought about having broken something too. But found nothing, and all the > > other settings from prefs.php where readable. So I made a test with a vanilla > > installation, with minor changes in servers.php. And came to the same > results. > > > > Here what happens: > > > > Mail options "Deleting and Moving messages", I enable the "When > deleting messages, move..." > > option. But dont choose a trash folder from the list. IMP will insert > an empty trash_folder into the > > horde_prefs table. > > > > However, if I enable the very same option, choose "Create a new > trashfolder", instead of entering > > the name press the cancel button, it works. IMP wont insert the empty > trash_folder into the > > horde_prefs table and uses the prefs.php setting. > > > > And of course if giving a name for the trash folder when asked for, > instead of pressing cancel, > > that one will be used by IMP. > > > > So, the problem is quite somewhere else, namely in the page > processing of the IMP options. > > imp/lib/prefs.php function handlefolders($updated, $pref, $folder, > $new) does the following: > > if ($folder == IMP_PREF_NO_FOLDER) { > > $prefs->setValue($pref, ''); > > } else { > > I think when a user chooses to move deleted messages to a trash > folder this code fragment > > does the wrong job. It should do as in the else part that follows, > choose an appropriate trash > > folder name and use it. > > > > Thats the way I think about it.
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