6.0.0-alpha12
6/12/25

[#820] Drafts and Trash folder preferences not retrieved
Summary Drafts and Trash folder preferences not retrieved
Queue IMP
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners
Requester thomas (at) sjolshagen (dot) net
Created 11/15/2004 (7514 days ago)
Due
Updated 12/11/2004 (7488 days ago)
Assigned 11/15/2004 (7514 days ago)
Resolved 12/11/2004 (7488 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/11/2004 03:30:18 PM Jan Schneider State ⇒ Resolved
 
11/25/2004 02:30:37 PM Jan Schneider Comment #11 Reply to this comment
Looking again at your servers.php, I see that your namespace setting 
is missing the trailing '/'.
11/15/2004 05:07:22 PM thomas (at) sjolshagen (dot) net Comment #10 Reply to this comment
That's what it was, then I changed it to see if it helped.. Which it - 
obviously - didn't.
11/15/2004 05:05:57 PM Jan Schneider Comment #9 Reply to this comment
Should be:



$_prefs['trash_folder'] = array(

// for Exchange, uncomment the entry below and remove the default value entry

//    'value' => 'Deleted Items',

     'value' => 'Trash',

     'locked' => false,

     'shared' => false,

     'type' => 'implicit');
11/15/2004 04:59:44 PM thomas (at) sjolshagen (dot) net Comment #8 Reply to this comment
Correct, set unixhierarchysep in imapd.conf.



From imp/config/prefs.php:

// trash folder

$_prefs['trash_folder'] = array(

// for Exchange, uncomment the entry below and remove the default value entry

//    'value' => 'Deleted Items',

     'value' => 'INBOX/INBOX.Trash',

     'locked' => false,

     'shared' => false,

     'type' => 'implicit');



Also defined INBOX.Trash in the per-user "options" for the 'thomas' 
user. (as mentioned).


11/15/2004 04:46:41 PM Jan Schneider Comment #7 Reply to this comment
OK, then you enabled unixhierarchysep in imapd.conf. Unfortunately 
IMP, or rather the c-client compiled into PHP still thinks that '.' is 
the separator. Or did you set the folder preference defaults to 
INBOX.Trash?
11/15/2004 04:39:08 PM thomas (at) sjolshage (dot) net Comment #6 Reply to this comment
Regardless of hierarchy settings and server settings, one thing I 
don't understand: why doesn't imp "fill out" the options section 
correctly (since the data has been saved in the database table)?


11/15/2004 04:36:29 PM thomas (at) sjolshagen (dot) net Comment #5 Reply to this comment
From cyradm:



locahost:localhost> lm

user/thomas (\HasChildren)

user/thomas/INBOX.Drafts (\HasNoChildren)

user/thomas/INBOX.Sent (\HasNoChildren)

user/thomas/INBOX.Trash (\HasNoChildren)

notspam (\HasNoChildren)

spam (\HasNoChildren)



AFIK, the hierarchy separator is "/"...


11/15/2004 04:17:24 PM Jan Schneider Comment #4 Reply to this comment
This still doesn't look correct. You use '/' as the separator in your 
configuration, but the server obviously uses '.'. At least that's what 
it tells IMP.
11/15/2004 04:10:27 PM thomas (at) sjolshagen (dot) net Comment #3 Reply to this comment
Don't have both folders and namespace set:



Snippet from horde/imp/config/servers.php:



     'folders' => '',

     'namespace' => 'user/INBOX',


11/15/2004 04:01:42 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
This value doesn't look right at all. Any chance that you've set both 
'folders' and 'namespace' in config/servers.php, though the comments 
explicitely tell you to not do this?
11/15/2004 01:29:15 AM thomas (at) sjolshagen (dot) net Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Drafts and Trash folder preferences not retrieved
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
When I log into IMP, the designated trash, drafts and spam folder 
options have not been restored. Checking the mysql database 
(horde_prefs) for that UID I see that the trash_folder field exists 
and consists of the correct folder for the namespace; 
"INBOX/INBOX.Trash"



Subsequently, any time - since I've got the "move deleted messages to 
the Trash folder" option set - I try to delete a message the IMP will 
try to create the INBOX/INBOX.Trash folder (again) and fail (since the 
folder already exists in that namespace).




Saved Queries