Patrick Ben Koetter
2018-Jun-25 14:03 UTC
doveadm: problem listing shared mailboxes using a wildcard
I'm setting up a dovecot server with private and shared namespaces. My test setup has these mailboxes: # /bin/doveadm mailbox list -u fdl01 at spike.test INBOX/sub01 shared shared/sammel01 at spike.test shared/sammel02 at spike.test INBOX In order to do some post-login scripting foo I'd like to get a list of shared mailboxes the user is currently subscribed to. The doveadm-mailbox man page says "It's also possible to use wildcards in the mailbox name." I'd like to use that feature to output only mailboxes from the shared namespace. However usind the wildcard character * doesn't output anything: # /bin/doveadm mailbox list -u fdl01 at spike.test -s shared* # Am I doing something wrong? p at rick P.S. Running dovecot-2.2.10-8.el7.x86_64 on a centos server. -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Schlei?heimer Stra?e 26/MG,80333 M?nchen Sitz der Gesellschaft: M?nchen, Amtsgericht M?nchen: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
Thore Bödecker
2018-Jun-25 14:08 UTC
doveadm: problem listing shared mailboxes using a wildcard
You might need to quote that last argument, otherwise it can get interpreted by the shell as globbing, which obviously is not what you want. I've been using wildcard arguments enclosed within '' and "" for various doveadm commands without issues so far. On 25.06.18 - 16:03, Patrick Ben Koetter wrote:> # /bin/doveadm mailbox list -u fdl01 at spike.test -s shared*Cheers, Thore -- Thore B?decker GPG ID: 0xD622431AF8DB80F3 GPG FP: 0F96 559D 3556 24FC 2226 A864 D622 431A F8DB 80F3 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <https://dovecot.org/pipermail/dovecot/attachments/20180625/0989c97e/attachment.sig>
Patrick Ben Koetter
2018-Jun-25 14:21 UTC
doveadm: problem listing shared mailboxes using a wildcard
* Thore B?decker <me at foxxx0.de>:> You might need to quote that last argument, otherwise it can get > interpreted by the shell as globbing, which obviously is not what you > want. > > I've been using wildcard arguments enclosed within '' and "" for > various doveadm commands without issues so far.Right. I had thought so too (and forgot to mention it in my intial post), but it doesn't make a difference: # /bin/doveadm mailbox list -s -u fdl01 at spike.test shared\* # /bin/doveadm mailbox list -s -u fdl01 at spike.test "shared*" # /bin/doveadm mailbox list -s -u fdl01 at spike.test 'shared*' # /bin/doveadm mailbox list -s -u fdl01 at spike.test "shared\*" # /bin/doveadm mailbox list -s -u fdl01 at spike.test 'shared\*' p at rick -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Schlei?heimer Stra?e 26/MG,80333 M?nchen Sitz der Gesellschaft: M?nchen, Amtsgericht M?nchen: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
Timo Sirainen
2018-Jun-27 16:21 UTC
doveadm: problem listing shared mailboxes using a wildcard
On 25 Jun 2018, at 16.03, Patrick Ben Koetter <p at sys4.de> wrote:> > In order to do some post-login scripting foo I'd like to get a list of shared > mailboxes the user is currently subscribed to. The doveadm-mailbox man page > says "It's also possible to use wildcards in the mailbox name." > > I'd like to use that feature to output only mailboxes from the shared > namespace. However usind the wildcard character * doesn't output anything: > > # /bin/doveadm mailbox list -u fdl01 at spike.test <mailto:fdl01 at spike.test> -s shared*The wildcards traverse only within the same namespace, so in this case the "shared/" namespace, which doesn't have any mailboxes (only child namespaces). Maybe we'll change this for v2.4. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20180627/f984b4f3/attachment.html>