[Dovecot] \" character in folder name results in strange LIST

Samuel Kvasnica bugreports at list.ims.co.at
Sun Aug 15 09:54:47 EEST 2010


 On 08/14/2010 10:27 PM, Timo Sirainen wrote:
> On 14.8.2010, at 21.15, Samuel Kvasnica wrote:
>
>> Well, I did try other servers and e.g. on scalix I'm getting this:
>>
>> * LIST (\X-DirectRef=000d7f94a4731510 \X-ModDate=20100814200222) "/" "six\"wafer"
>>
>> I cannot find anything relevant in RFC3501
> ABNF is the relevant part. You'll get to the literal from mailbox-list:
>
> mailbox-list    = "(" [mbx-list-flags] ")" SP
>                    (DQUOTE QUOTED-CHAR DQUOTE / nil) SP mailbox
>
> mailbox         = "INBOX" / astring
>
> astring         = 1*ASTRING-CHAR / string
>
> string          = quoted / literal
>
> literal         = "{" number "}" CRLF *CHAR8
>                     ; Number represents the number of CHAR8s
>
Timo, it was probably a bad diagnosis of mine: seems like I'm getting
currently errors in Thunderbird for ANY folder name when trying to
delete or rename it.
It is most likely since I switched to LAYOUT=fs.

This is the IMAP conversation of folder deletion using old dovecot v1.2
setup  + normal maildir (it works ok):

8 OK Idle completed.
9 list "" "aaa/*"
9 OK List completed.
10 close
10 OK Close completed.
11 rename "aaa" "Trash/aaa"
11 OK Rename completed.
12 subscribe "Trash/aaa"
12 OK Subscribe completed.
13 unsubscribe "aaa"
13 OK Unsubscribe completed.

An this is with recent dovecot 2.0_ 3cda9f2f48bd + LAYOUT=fs (LIST
broken hence error on subscribe commands)

6 OK Idle completed.
7 list "" "aaa/*"
* LIST (\HasNoChildren) "/" "aaa/"    <=== WHY ?
7 OK List completed.
8 close
8 OK Close completed.
9 rename "aaa" "Trash/aaa"
9 OK Rename completed.
10 subscribe "Trash/aaa"
10 OK Subscribe completed.
11 unsubscribe "aaa"
11 OK Unsubscribe completed.
12 subscribe "Trash/aaa/"
12 NO Invalid mailbox name: Trash/aaa/   <=== non-existing child folder,
ERROR
13 unsubscribe "aaa/"
13 NO Invalid mailbox name: aaa/ <=== non-existing child folder, ERROR




More information about the dovecot mailing list