<?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>ACLs courier-imap</title> 
  <pubDate>Fri, 10 Apr 2026 13:16:46 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/10091</link> 
  <atom:link rel="self" type="application/rss+xml" title="ACLs courier-imap" href="https://bugs.horde.org/ticket/10091/rss" /> 
  <description>ACLs courier-imap</description> 
 
   
   
  <item> 
   <title>using courier-imap 4.8.1

1. I can&#039;t set the following rig</title> 
   <description>using courier-imap 4.8.1

1. I can&#039;t set the following rights (UI disabled) : Create Folder, Delete/Purge.

2. when ever I change ACLs on a folder, I get the following error :
ERR: HORDE [imp] IMAP error: Cannot modify ACLs on this mailbox. [pid 27021 on line 343 of &quot;/var/www/html/hordetest/imp/lib/Imap.php&quot;]
DEBUG: HORDE [imp] Couldn&#039;t remove from user &quot;administrators&quot; these rights for the mailbox &quot;INBOX.bug&quot;: kxte [pid 27021 on line 27 of &quot;/var/www/html/hordetest/libs/Horde/Core/Notification/Handler/Decorator/Hordelog.php&quot;]
DEBUG: HORDE [imp] ACL rights for &quot;ronan&quot; updated for the mailbox &quot;bug&quot;. [pid 27021 on line 27 of &quot;/var/www/html/hordetest/libs/Horde/Core/Notification/Handler/Decorator/Hordelog.php&quot;]



Since options  &quot;Create Folder&quot; and &quot;Delete/Purge&quot; are disabled in UI, when I save the ACLs, IMP is trying to modify  administrator&#039;s rights, and apparently courier-imap doesn&#039;t like it. attached is the imap trace.


</description> 
   <pubDate>Tue, 17 May 2011 07:28:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64719</link> 
  </item> 
   
  <item> 
   <title>Most likely a duplicate of Ticket #10079.</title> 
   <description>Most likely a duplicate of Ticket #10079.</description> 
   <pubDate>Tue, 17 May 2011 17:01:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64742</link> 
  </item> 
   
  <item> 
   <title>&gt; Most likely a duplicate of Ticket #10079.

I saw Ticket </title> 
   <description>&gt; Most likely a duplicate of Ticket #10079.

I saw Ticket #10079 before reporting this issue, but Jan original&#039;s issue seams to be solved and I don&#039;t have any issue with deleting emails.

here I think the are 2 issues:
first, courier-imap doesn&#039;t wnat anybody to play/mess with the &quot;administrators&quot; user. Is this specific to courier-imap ? If not, should there be a check for not modifying this user&#039;s ACLs ?

second, IMP doesn&#039;t seam to detect all ACL attribute since both of the following are disabled in the UI : Create Folder, Delete/Purge. To the question &quot;is this related to ticket #10079&quot; ? I don&#039;t know as this has been a while since I tested ACL on IMP 5. (this is working fine on IMP 4 though).


</description> 
   <pubDate>Tue, 17 May 2011 20:09:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64743</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #10091: </title> 
   <description>Changes have been made in Git for this ticket:

Bug #10091: These rights don&#039;t exist

 1 files changed, 0 insertions(+), 14 deletions(-)
http://git.horde.org/horde-git/-/commit/60b22c34f0cbd486ddee76cc55e18c2c57d83c90</description> 
   <pubDate>Tue, 17 May 2011 23:13:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64746</link> 
  </item> 
   
  <item> 
   <title>&gt; first, courier-imap doesn&#039;t wnat anybody to play/mess with</title> 
   <description>&gt; first, courier-imap doesn&#039;t wnat anybody to play/mess with the 
&gt; &quot;administrators&quot; user. Is this specific to courier-imap ? If not, 
&gt; should there be a check for not modifying this user&#039;s ACLs ?

This is specific to Courier, I guess. &quot;administrators&quot; is no more special than any other users so there is no reason to lock access to it.

&gt; second, IMP doesn&#039;t seam to detect all ACL attribute since both of 
&gt; the following are disabled in the UI : Create Folder, Delete/Purge. 
&gt; To the question &quot;is this related to ticket #10079&quot; ? I don&#039;t know as 
&gt; this has been a while since I tested ACL on IMP 5. (this is working 
&gt; fine on IMP 4 though).

I actually need to delete those two from the Prefs UI.  They should NEVER show up.  They are &quot;virtual rights&quot; and we abstract them out when dealing with old RFC 2086 servers (because they are broken in the RFC 2086 limitation).</description> 
   <pubDate>Tue, 17 May 2011 23:14:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64747</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; first, courier-imap doesn&#039;t wnat anybody to play/mess wit</title> 
   <description>&gt;&gt; first, courier-imap doesn&#039;t wnat anybody to play/mess with the
&gt;&gt; &quot;administrators&quot; user. Is this specific to courier-imap ? If not,
&gt;&gt; should there be a check for not modifying this user&#039;s ACLs ?
&gt;
&gt; This is specific to Courier, I guess. &quot;administrators&quot; is no more 
&gt; special than any other users so there is no reason to lock access to 
&gt; it.

So I have no problem with errors being thrown by the IMAP server if their rights are attempted to be altered and they are not supposed to.

But this patch should completely remove the other two &quot;disabled&quot; UI elements.  Does this work better?</description> 
   <pubDate>Tue, 17 May 2011 23:15:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64748</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; first, courier-imap doesn&#039;t wnat anybody to play/mess wi</title> 
   <description>&gt;&gt;&gt; first, courier-imap doesn&#039;t wnat anybody to play/mess with the
&gt;&gt;&gt; &quot;administrators&quot; user. Is this specific to courier-imap ? If not,
&gt;&gt;&gt; should there be a check for not modifying this user&#039;s ACLs ?
&gt;&gt;
&gt;&gt; This is specific to Courier, I guess. &quot;administrators&quot; is no more
&gt;&gt; special than any other users so there is no reason to lock access to
&gt;&gt; it.
&gt;
&gt; So I have no problem with errors being thrown by the IMAP server if 
&gt; their rights are attempted to be altered and they are not supposed to.

Ideally, I would have like &quot;administrators&quot; ACL to be hidden from users. but if this is specific to only one IMAP server then this is probably too much work/hack.
And since users can&#039;t modify it anyway, I guess I&#039;m ok with an error being displayed.

&gt; But this patch should completely remove the other two &quot;disabled&quot; UI 
&gt; elements.  Does this work better?

No, but the following patch helps :

--- framework/Imap_Client/lib/Horde/Imap/Client/Base.php.org	2011-05-18 09:01:42.000000000 +0200
+++ framework/Imap_Client/lib/Horde/Imap/Client/Base.php	2011-05-18 09:01:50.000000000 +0200
@@ -2595,11 +2595,7 @@
             return array_merge($rights, str_split(reset($capability)));
         }
 
-        // Add RFC 2086 rights (DEPRECATED)
-        return array_merge($rights, array(
-            Horde_Imap_Client::ACL_CREATE,
-            Horde_Imap_Client::ACL_DELETE
-        ));
+        return $rights;
     }
 
I&#039;ve seen traces of those two ACL const in framework/Imap_Client/lib/Horde/Imap/Client/Data/AclCommon.php.
May be you want to remove them ?


</description> 
   <pubDate>Wed, 18 May 2011 07:25:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64758</link> 
  </item> 
   
  <item> 
   <title>I&#039;m having second thoughts about being Ok with a error messa</title> 
   <description>I&#039;m having second thoughts about being Ok with a error message being thrown to the user. 

Everytime a user change an ACL, he gets the following error :
Couldn&#039;t remove from user &quot;administrators&quot; these rights for the mailbox &quot;INBOX.Bug&quot;: kxte

This is going to be really disturbing for end users.

IMP is trying to unset ACLs that are not displayed in UI, but set on the server (which make sense).

I think you should revert your patch and make the two ACL available for modification (like it was perfectly working in IMP 4) to avoid end users/admins asking about those errors. 


</description> 
   <pubDate>Wed, 18 May 2011 07:44:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64760</link> 
  </item> 
   
  <item> 
   <title>&gt; Everytime a user change an ACL, he gets the following erro</title> 
   <description>&gt; Everytime a user change an ACL, he gets the following error :
&gt; Couldn&#039;t remove from user &quot;administrators&quot; these rights for the 
&gt; mailbox &quot;INBOX.Bug&quot;: kxte

This is an issue with Courier - it should ignore rights it doesn&#039;t know about.  So I will have to work around this.

&gt; I think you should revert your patch and make the two ACL available 
&gt; for modification (like it was perfectly working in IMP 4) to avoid 
&gt; end users/admins asking about those errors.

NO NO NO.  As mentioned in RFC 4314, the CREATE and DELETE rights are badly broken in RFC 2086.  So a user should *never* be allowed to directly set those rights.  Instead, they should set the RFC 4314 rights, which should be translated (as necessary) before sending to the server.</description> 
   <pubDate>Wed, 18 May 2011 07:50:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64762</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Everytime a user change an ACL, he gets the following err</title> 
   <description>&gt;&gt; Everytime a user change an ACL, he gets the following error :
&gt;&gt; Couldn&#039;t remove from user &quot;administrators&quot; these rights for the
&gt;&gt; mailbox &quot;INBOX.Bug&quot;: kxte
&gt;
&gt; This is an issue with Courier - it should ignore rights it doesn&#039;t 
&gt; know about.  So I will have to work around this.

FWIW Cyrus is doing exactly the same. It has an implicit adminstrator user (usually &quot;cyrus&quot;) that you can&#039;t revoke ACLs from, and you get an error message as soon as you save a folder&#039;s ACLs.</description> 
   <pubDate>Wed, 18 May 2011 08:06:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64769</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Everytime a user change an ACL, he gets the following err</title> 
   <description>&gt;&gt; Everytime a user change an ACL, he gets the following error :
&gt;&gt; Couldn&#039;t remove from user &quot;administrators&quot; these rights for the
&gt;&gt; mailbox &quot;INBOX.Bug&quot;: kxte
&gt;
&gt; This is an issue with Courier - it should ignore rights it doesn&#039;t 
&gt; know about.

It isn&#039;t about the rights, it is about the system user.
the following unix command doesn&#039;t return an error :
[]# maildiracl -set ~/Maildir INBOX.Bug user=ronan +azertyuiopqsdfghjklmwxcvbn
[]#

this one does return an error :
[]# maildiracl -set /home/rsalmon/Maildir INBOX.Bug administrators -e
Trying to set invalid access rights for administrators
[]#

Actually, from maildiracl man page :
IRREVOCABLE ACCESS RIGHTS
The owner of the mailbox must always have the ?a? amd ?l? access rights. The administrators group must always have all access rights to all folders. Attempts to set access control lists, that do not include these minimum access rights, will be rejected.
</description> 
   <pubDate>Wed, 18 May 2011 08:28:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64774</link> 
  </item> 
   
  <item> 
   <title>&gt; Changes have been made in Git for this ticket:
&gt;
&gt; Bug #</title> 
   <description>&gt; Changes have been made in Git for this ticket:
&gt;
&gt; Bug #10091: These rights don&#039;t exist
&gt;
&gt;  1 files changed, 0 insertions(+), 14 deletions(-)
&gt; http://git.horde.org/horde-git/-/commit/60b22c34f0cbd486ddee76cc55e18c2c57d83c90

This broke the ACL screen for me. I have 3 Administration columns now.</description> 
   <pubDate>Wed, 18 May 2011 08:52:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64777</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #10091: </title> 
   <description>Changes have been made in Git for this ticket:

Bug #10091: Improve ACL UI (especially for RFC 2086 servers)

 2 files changed, 56 insertions(+), 88 deletions(-)
http://git.horde.org/horde-git/-/commit/c384e738d4d7a3c3b723b8a1e992af4e02fc7412</description> 
   <pubDate>Thu, 19 May 2011 17:41:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64858</link> 
  </item> 
   
  <item> 
   <title>This is now working correctly for me on RFC 2086 servers.</title> 
   <description>This is now working correctly for me on RFC 2086 servers.</description> 
   <pubDate>Thu, 19 May 2011 17:42:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64859</link> 
  </item> 
   
  <item> 
   <title>&gt; This is now working correctly for me on RFC 2086 servers.</title> 
   <description>&gt; This is now working correctly for me on RFC 2086 servers.
Looks good over here too. 
Thanks.</description> 
   <pubDate>Fri, 20 May 2011 07:35:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64890</link> 
  </item> 
   
  <item> 
   <title>Here too.</title> 
   <description>Here too.</description> 
   <pubDate>Fri, 20 May 2011 07:48:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10091#t64892</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
