6.0.0-beta1
7/4/25

[#9895] deleteMailbox doesn't work
Summary deleteMailbox doesn't work
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org, slusarz (at) horde (dot) org
Requester vilius (at) lnk (dot) lt
Created 04/13/2011 (5196 days ago)
Due
Updated 04/19/2011 (5190 days ago)
Assigned 04/13/2011 (5196 days ago)
Resolved 04/19/2011 (5190 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/19/2011 12:45:57 AM Michael Slusarz State ⇒ Resolved
 
04/19/2011 12:45:52 AM Git Commit Comment #12 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9895: Replace 'unixhier' parameter with 'userhierarchy' for 
Cyrsql auth driver

  2 files changed, 8 insertions(+), 4 deletions(-)
http://git.horde.org/horde-git/-/commit/53d7867eef3cb3a85aff19aa9957cee5ac8954e1
04/19/2011 12:45:48 AM Git Commit Comment #11 Reply to this comment
Changes have been made in Git for this ticket:

Fix default userhierarchy for Cyrsql driver (Bug #9895).

  2 files changed, 10 insertions(+), 22 deletions(-)
http://git.horde.org/horde-git/-/commit/94c2dbc93c077f04a1c5dcf34c689689b09b40af
04/17/2011 07:10:08 PM vilius (at) lnk (dot) lt Comment #10
New Attachment: userhier.patch Download
Reply to this comment
The IMAP auth driver defaults to 'user.'  So this should be fine 
there - I don't see what the issue could be with the IMAP driver.
True, it seems that I've tested IMAP driver on the wrong server.

And with this patch CyrSQL driver works too.
04/14/2011 07:25:55 PM Jan Schneider Comment #9 Reply to this comment
Theoretically this could be even something completely different than 
"user NS-separator", so the prefix must be specified as a 
configuration option. It should default to "user." though.
04/14/2011 07:15:02 PM vilius (at) lnk (dot) lt Comment #8 Reply to this comment

[Show Quoted Text - 9 lines]
No. It depends on your imapd.conf configuration. From Cyrus manual:

"unixhierarchysep: 0
Use the UNIX separator character ?/? for delimiting levels of mailbox 
hierarchy. The default is to use the netnews separator character ?.?."

Mine is the default.
04/14/2011 07:08:49 PM Michael Slusarz Comment #7 Reply to this comment
The IMAP auth driver defaults to 'user.'  So this should be fine there 
- I don't see what the issue could be with the IMAP driver.
04/14/2011 07:07:20 PM Michael Slusarz Comment #6
Assigned to Jan Schneider
Reply to this comment
My users are under name space "user." I will try to harcode that into
deleteMailbox arguments later today.
I can confirm that adding "user." in front of the $mailbox works and 
mailbox gets deleted.
Except that cyrsql expects the userhierarchy to be 'user/', not 
'user.'.  I have no idea which is correct, but it was this way in H3 
also.  Jan - can you provide input here?

04/14/2011 06:34:02 AM vilius (at) lnk (dot) lt Comment #5 Reply to this comment
My users are under name space "user." I will try to harcode that 
into deleteMailbox arguments later today.
I can confirm that adding "user." in front of the $mailbox works and 
mailbox gets deleted.

04/14/2011 04:51:51 AM vilius (at) lnk (dot) lt Comment #4 Reply to this comment
Sorry for not mentioning it, but I saw that $mailbox was never defined 
and did exactly what your patch does. Still there is a problem with 
userhierarchy parameter which is never defined in my case.

Also I tried removing that parameter from $mailbox = line to no avail.

My users are under name space "user." I will try to harcode that into 
deleteMailbox arguments later today.
04/13/2011 08:53:41 PM Michael Slusarz Comment #3
Assigned to Michael Slusarz
State ⇒ Feedback
Reply to this comment
Cyrsql was definitely broken because $mailbox was never defined.  But 
IMAP looked like it should work.

Can you try this patch and report back?
04/13/2011 08:52:09 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9895: Fix deleteMailbox for Cyrsql and Imap auth drivers

  2 files changed, 9 insertions(+), 3 deletions(-)
http://git.horde.org/horde-git/-/commit/7488ec8ac68e21317e92fde638f340fc1f9233b1
04/13/2011 02:18:55 PM vilius (at) lnk (dot) lt Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ deleteMailbox doesn't work
Type ⇒ Bug
Reply to this comment
When trying to delete a user from Administration -> Users interface 
using CyrSQL or IMAP drivers I get "IMAP error: Mailbox does not 
exist". Just a guess, but this is probably becouse of in the past IMAP 
libraries used PHP imap_deletemailbox function, but now it uses direct 
socket connection and mailbox need to be specified with namespace? 
Like user.mailbox.

Saved Queries