How to quote the special wildcard characters '*' and '?'

Teodor Milkov tm at del.bg
Tue Jan 27 09:22:33 UTC 2015


On 15/01/15 11:17, David Davidov wrote:
> Hello,
>
> I am searching for a way to execute doveadm command against mailbox
> containing a special wildcard character in its name. For example:
>
> # doveadm expunge -u 'me?@example.com' mailbox 'INBOX.Junk Mail'
> SAVEDBEFORE 7
>
> The result is:
> doveadm(root): Error: User listing returned failure
> doveadm: Error: Failed to iterate through some users
>
> with exit code 75
>
> In the mail log:
> dovecot: auth: Error: Trying to iterate users, but userdbs don't support it
>
> To be clear: the question mark is a part of the mailbox's name. Not an
> attempt to use it as wildcard.
>
> Is there a way
>    1. To quote the special characters
> or
>    2. To disable wildcard matcing in the -u parameter

Hello,

I'm struggling with the same problem. Is there a way to escape wildcard 
characters or dovecot must be patched?

Best regards,
Teodor


More information about the dovecot mailing list