Re: [Dovecot] INBOX lost in virtual namespace

2009-04-15 Thread Timo Sirainen
On Thu, 2009-04-09 at 18:45 +0800, Xueron Nee wrote:
 # cat ~/Maildir/virtual/.INBOX/dovecot-virtual
 secret/*
 all
 
 but, the INBOX lost in secret/ namespace :(

Because you've set inbox=no to secret/ namespace. So I think it's
correct. But in latest hg version you can now do:

secret/
secret/*
 all

Alternatively to get secret/* to match INBOX in inbox=no namespace,
you'd need to put the INBOX contents into ~/Maildir/.INBOX :

mail_location = maildir:~/Maildir:INBOX=~/Maildir/.INBOX


signature.asc
Description: This is a digitally signed message part


[Dovecot] INBOX lost in virtual namespace

2009-04-09 Thread Xueron Nee
Hi,

I have set a virtual namespace to create Virtual POP3 INBOX follow:
http://wiki.dovecot.org/Plugins/Virtual

dovecot.conf:

mail_location = maildir:~/Maildir

# default namespace
namespace private {
separator   = /
prefix  =
list= yes
hidden  = no
subscriptions   = yes
}

# virtual mailbox, for pop3
namespace private {
separator   = /
prefix  = virtual/
location= virtual:~/Maildir/virtual:LAYOUT=maildir++
list= no
hidden  = yes
}

# Copy of the default namespace. We'll use this in dovecot-virtual file.
namespace private {
separator   = /
prefix  = secret/
list= no
hidden  = yes
subscriptions   = no
}  


# cat ~/Maildir/virtual/.INBOX/dovecot-virtual
secret/*
all

but, the INBOX lost in secret/ namespace :(

When list in IMAP:

a1 list  *
* LIST (\HasNoChildren) / Sent
* LIST (\HasNoChildren) / Spam
* LIST (\HasNoChildren) / Junk
* LIST (\HasNoChildren) / Draft
* LIST (\HasNoChildren) / Trash
* LIST (\HasNoChildren) / INBOX
a1 OK List completed.
a1 list secret/ *
* LIST (\HasNoChildren) / secret/Sent
* LIST (\HasNoChildren) / secret/Spam
* LIST (\HasNoChildren) / secret/Junk
* LIST (\HasNoChildren) / secret/Draft
* LIST (\HasNoChildren) / secret/Trash
a1 OK List completed.

INBOX lost, So, the virtual namespace for POP3 cannot see the messages
in IMAP's INBOX.

Am I doing anything wrong?

Thanks..

--
Xueron Nee
http://www.xueron.com