Re: please HELP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



cyradm has wildcard support:

host> cm user/first.last/Trash
host> cm user/first.last/Sent
host> cm user/first.last/Read
192.168.2.11> listacl user/f*
user/first.last:
 first.last.todelete lrswipkxtecdan
user/first.last/Read:
 first.last.todelete lrswipkxtecdan
user/first.last/Sent:
 first.last.todelete lrswipkxtecdan
user/first.last/Trash:
 first.last.todelete lrswipkxtecdan
host> setacl user/fir* first.last.todelete ""
Setting ACL on user/first.last...OK.
Setting ACL on user/first.last/Read...OK.
Setting ACL on user/first.last/Sent...OK.
Setting ACL on user/first.last/Trash...OK.
host> setacl user/fir* first.last all
Setting ACL on user/first.last...OK.
Setting ACL on user/first.last/Read...OK.
Setting ACL on user/first.last/Sent...OK.
Setting ACL on user/first.last/Trash...OK.
host> listacl user/fir*
user/first.last:
 first.last lrswipkxtecdan
user/first.last/Read:
 first.last lrswipkxtecdan
user/first.last/Sent:
 first.last lrswipkxtecdan
user/first.last/Trash:
 first.last lrswipkxtecdan

Should be easy to script in PHP and then cut and paste.

On 01/23/18 14:14 -0300, Heiler Bemerguy via Info-cyrus wrote:

I'm trying to fix the mailboxes with something like this:

        imap_setacl ($mbox, "user/".$argv[1]."/*", $wrongname."todelete", "");         imap_setacl ($mbox, "user/".$argv[1]."/*", $argv[1], "lrswipkxtea");

But it seems imap_setacl can't use wildcards. And I can't write one by one by hand.

--
Dan White
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus




[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux