[Dovecot] Deleting a folder with & character

Alex Crow
Wed, 19 Sep 2012 08:29:12 -0000

On 19/09/12 09:22, Angel L. Mateo wrote:
> Hello,
>
>     One of my users has a mailbox named 'INBOX.Kron & SPM'
(maybe
> created a long time ago, when we use courier imap as pop/imap server,
> but I'm not sure).
>
>     I can see the maildir with a doveadm list command:
>
> amateo_adm at myotis31:~$ sudo doveadm mailbox list -u <user>
> ...
> INBOX.Kron & SPM
> ...
>
>     but I can't delete it, neithe rename it:
>
> amateo_adm at myotis31:~$ sudo doveadm mailbox delete -u <user>
> 'INBOX.Kron & SPM'
> doveadm(jrfv): Error: Can't delete mailbox INBOX.Kron & SPM:
Mailbox
> doesn't exist: INBOX.Kron &- SPM
> amateo_adm at myotis31:~$ sudo doveadm mailbox delete -u <user>
> 'INBOX.Kron \& SPM'
> doveadm(jrfv): Error: Can't delete mailbox INBOX.Kron \& SPM:
Mailbox
> doesn't exist: INBOX.Kron \&- SPM
>
>     is there any way to delete it with doveadm command? should I use a
> specific syntax or escape to indicate the name?
>
Hi,

I see something similar when I try to doveadm import maildir folders (to
mdbox) with ampersands - I get the same "Mailbox doesn't exist:
INBOX.Foo &- Bar" with that extraneous hyphen.

Cheers

Alex

--
This message is intended only for the addressee and may contain
confidential information.  Unless you are that person, you may not
disclose its contents or use it in any way and are requested to delete
the message along with any attachments and notify us immediately.

"Transact" is operated by Integrated Financial Arrangements plc
Domain House, 5-7 Singer Street, London  EC2A 4BQ
Tel: (020) 7608 4900 Fax: (020) 7608 5300
(Registered office: as above; Registered in England and Wales under number:
3727592)
Authorised and regulated by the Financial Services Authority (entered on the FSA
Register; number: 190856)