On 4.10.2012, at 5.28, Marc Perkel wrote:
Thanks for your help. I think I'm close.
This works: mail_location = maildir:/email/%d/%n:LAYOUT=fs
This doesn't: mail_location = maildir:/email/%d:LAYOUT=fs
The email client doesn't see the directories as folders and nothing is visible. I must be missing something.
Dunno. At least this method of testing works:
create test mail:
doveadm -O -o mail=maildir:/tmp/vmail/domain/user mailbox create INBOX touch /tmp/vmail/domain/user/cur/newmail
test that user@domain works:
./imap -O -o mail=maildir:/tmp/vmail/domain/user:LAYOUT=fs a select inbox
- FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
- OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
- 1 EXISTS
test that domain works:
./imap -O -o mail=maildir:/tmp/vmail/domain:LAYOUT=fs b list "" *
- LIST (\HasNoChildren) "/" "user"
- LIST (\HasNoChildren) "/" "INBOX" b OK List completed. c select user
- FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
- OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
- 1 EXISTS
- 0 RECENT
test that superuser works:
./imap -O -o mail=maildir:/tmp/vmail:LAYOUT=fs d list "" *
- LIST (\Noselect \HasChildren) "/" "domain"
- LIST (\HasNoChildren) "/" "domain/user"
- LIST (\HasNoChildren) "/" "INBOX" d OK List completed. e select domain/user
- FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
- OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
- 1 EXISTS