[Dovecot] Deleting a folder with & character

Timo Sirainen tss at iki.fi
Wed Sep 19 12:14:07 EEST 2012


On 19.9.2012, at 11.22, Angel L. Mateo wrote:

> 	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?

It's an invalid mailbox name and you can't access it using doveadm. Either rename it with "mv" or via IMAP protocol (not entirely sure if it works via IMAP either).




More information about the dovecot mailing list