[Dovecot] doveadm mailbox subscribe wildcard
Hi,
I noticed that wildcards work like the following, as described in the man page:
# doveadm mailbox list -s -u bob dovecot* dovecot dovecot/pigeonhole dovecot/pigeonhole/2.0
however, wildcard subscriptions don't work:
# doveadm mailbox subscribe -u bob dovecot*
# doveadm mailbox list -s -u bob dovecot* dovecot dovecot* dovecot/pigeonhole dovecot/pigeonhole/2.0
It seems I subscribed the non-existant mailbox called 'dovecot*' -- is there a better way to handle this?
thanks! micah
--
On 10/06/2011 11:23 PM Micah Anderson wrote:
Hi,
I noticed that wildcards work like the following, as described in the man page:
# doveadm mailbox list -s -u bob dovecot* dovecot dovecot/pigeonhole dovecot/pigeonhole/2.0
however, wildcard subscriptions don't work:
Why should it work? Where is 'wildcard subscribing' documented?
# doveadm mailbox subscribe -u bob dovecot*
# doveadm mailbox list -s -u bob dovecot* dovecot dovecot* dovecot/pigeonhole dovecot/pigeonhole/2.0
It seems I subscribed the non-existant mailbox called 'dovecot*' -- is there a better way to handle this?
for box in doveadm mailbox list dovecot\*
do
doveadm mailbox subscribe $box
done
Regards, Pascal
The trapper recommends today: defaced.1127923@localdomain.org
On 2011-10-06 23:23, Micah Anderson wrote:
# doveadm mailbox list -s -u bob dovecot* # doveadm mailbox subscribe -u bob dovecot*
RFC3501. Wildcards are allowed only in LIST/LSUB commands. -- Aleksander 'A.L.E.C' Machniak LAN Management System Developer [http://lms.org.pl] Roundcube Webmail Developer [http://roundcube.net] --------------------------------------------------- PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
"A.L.E.C" alec@alec.pl writes:
On 2011-10-06 23:23, Micah Anderson wrote:
# doveadm mailbox list -s -u bob dovecot* # doveadm mailbox subscribe -u bob dovecot*
RFC3501. Wildcards are allowed only in LIST/LSUB commands.
Aha, thanks!
I'll use the for loop method to achieve what I want.
micah
--
participants (3)
-
A.L.E.C
-
Micah Anderson
-
Pascal Volk