please HELP
Dan White
dwhite at olp.net
Tue Jan 23 12:44:24 EST 2018
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
More information about the Info-cyrus
mailing list