connections: 3
state: auth

# get the separator
1 ok list "" ""
* list () $sep $root
# it should be \noselect, but don't fail everything if it doesn't exist
* list (\noselect) $sep $root

1 ok create $mailbox${sep}
1 ok create $mailbox${sep}test
2 ok list "" $mailbox${sep}%
* list () $sep $mailbox${sep}test

2 ok create $mailbox${sep}test2
1 ok list "" $mailbox${sep}%
* list () $sep $mailbox${sep}test
* list () $sep $mailbox${sep}test2

3 ok create $mailbox${sep}test3${sep}
2 ok create $mailbox${sep}test3${sep}test4${sep}
2 ok create $mailbox${sep}test3${sep}test4${sep}test5
2 ok list "" $mailbox${sep}%
* list () $sep $mailbox${sep}test
* list () $sep $mailbox${sep}test2
* list () $sep $mailbox${sep}test3
! list () $sep $mailbox${sep}test3${sep}test4
! list () $sep $mailbox${sep}test3${sep}test4${sep}test5

3 ok list "" $mailbox${sep}%
* list () $sep $mailbox${sep}test
* list () $sep $mailbox${sep}test2
* list () $sep $mailbox${sep}test3

2 ok list "" $mailbox${sep}%${sep}%
! list () $sep $mailbox${sep}test
! list () $sep $mailbox${sep}test2
! list () $sep $mailbox${sep}test3
* list () $sep $mailbox${sep}test3${sep}test4
! list () $sep $mailbox${sep}test3${sep}test4${sep}test5

3 ok list "" $mailbox${sep}*
* list () $sep $mailbox${sep}test
* list () $sep $mailbox${sep}test2
* list () $sep $mailbox${sep}test3
* list () $sep $mailbox${sep}test3${sep}test4${sep}test5

3 ok list $mailbox${sep} *
* list () $sep $mailbox${sep}test
* list () $sep $mailbox${sep}test2
* list () $sep $mailbox${sep}test3
* list () $sep $mailbox${sep}test3${sep}test4${sep}test5

2 ok list "" $mailbox${sep}*test4
! list () $sep $mailbox${sep}test
! list () $sep $mailbox${sep}test2
! list () $sep $mailbox${sep}test3
* list () $sep $mailbox${sep}test3${sep}test4
! list () $sep $mailbox${sep}test3${sep}test4${sep}test5

2 ok list "" $mailbox${sep}*test*
* list () $sep $mailbox${sep}test
* list () $sep $mailbox${sep}test2
* list () $sep $mailbox${sep}test3
* list () $sep $mailbox${sep}test3${sep}test4${sep}test5

2 ok list "" $mailbox${sep}%3${sep}%
* list () $sep $mailbox${sep}test3${sep}test4
2 ok list "" $mailbox${sep}%3${sep}%4
* list () $sep $mailbox${sep}test3${sep}test4
2 ok list "" $mailbox${sep}%t*4
* list () $sep $mailbox${sep}test3${sep}test4

2 ok delete $mailbox${sep}test2
1 ok list "" $mailbox${sep}*
! list () $sep $mailbox${sep}test2

1 ok list "" INBOX
* list () $inboxsep INBOX
