[Dovecot] dot-containing foldernames \HasNoChildren bug ?

Samuel Kvasnica bugreports at list.ims.co.at
Thu Aug 5 11:06:12 EEST 2010


Hello,

we experience problems with dovecot configuration using the listescape
plugin to allow dots
in foldernames. In some mail clients, dot-containing folders won't show
any subfolders. This seems to
be related to the fact that the \HasNoChildren flag is set on such
folders even if subfolders do exits.

Here is an example from telnet session:

* LIST (\HasNoChildren) "/" "my.test"
* LIST (\HasNoChildren) "/" "my.test/aaa"
* LIST (\HasNoChildren) "/" "my.test/folder.first"
* LIST (\HasNoChildren) "/" "my.test/folder.first/sub.sub.folder"
* LIST (\HasNoChildren) "/" "my.test/folder.second"


when we rename my.test to my_test everything works as expected:

* LIST (\HasChildren) "/"
"my_test"                                                                                                                 

* LIST (\HasNoChildren) "/"
"my_test/aaa"                                                                                                           

* LIST (\HasNoChildren) "/"
"my_test/folder.first"                                                                                                  

* LIST (\HasNoChildren) "/"
"my_test/folder.first/sub.sub.folder"                                                                                   

* LIST (\HasNoChildren) "/" "my_test/folder.second"    

Could somebody look into this issue or give us some more debugging hints ?

We use dovecot 1.2.13 + maildir + acl+quota+listescape, the config is:

# 1.2.13: /etc/dovecot/dovecot.conf     
# OS: Linux 2.6.31.13-18-xen x86_64 openSUSE 11.2 (x86_64) xfs
base_dir: /var/run/dovecot/                                  
log_path: /var/log/dovecot                                   
protocols: imap imaps managesieve                            
ssl: no                                                      
disable_plaintext_auth: no                                   
login_dir: /var/run/dovecot/login                            
login_executable(default): /usr/lib/dovecot/imap-login       
login_executable(imap): /usr/lib/dovecot/imap-login          
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
login_processes_count: 5                                        
mail_privileged_group: vmail                                    
mail_uid: vmail                                                 
mail_gid: vmail                                                 
mail_location: maildir:/data/vmail/%u/Maildir                   
mail_debug: yes                                                 
mail_executable(default): /etc/dovecot/gmember.sh               
mail_executable(imap): /etc/dovecot/gmember.sh                  
mail_executable(managesieve): /usr/lib/dovecot/managesieve      
mail_plugins(default): fts fts_squat acl imap_acl quota imap_quota
listescape
mail_plugins(imap): fts fts_squat acl imap_acl quota imap_quota
listescape  
mail_plugins(managesieve):                                                  

mail_plugin_dir(default):
/usr/lib64/dovecot/modules/imap                   
mail_plugin_dir(imap):
/usr/lib64/dovecot/modules/imap                      
mail_plugin_dir(managesieve):
/usr/lib64/dovecot/modules/managesieve        
namespace:                                                                  

  type:
private                                                             
  separator:
/                                                              
  inbox:
yes                                                                
  list:
yes                                                                 
  subscriptions:
yes                                                        
namespace:                                                                  

  type:
shared                                                              
  separator:
/                                                              
  prefix:
Shared/%%u/                                                       
  location:
maildir:/data/vmail/%%u/Maildir:INDEX=/data/vmail/%u/index/shared/%%u
  list:
yes                                                                     
namespace:                                                                      

  type:
public                                                                  
  separator:
/                                                                  
  prefix:
Public/                                                               
  location:
maildir:/data/vmail/Public:CONTROL=/data/vmail/%u/index/public:INDEX=/data/vmail/%u/index/public
  list:
yes                                                                                                

lda:                                                                                                       

  postmaster_address: postmaster at xxx.co.at
  hostname:
imap                                                                                           

  mail_plugins: acl sieve quota
listescape                                                                 
  mail_plugin_dir:
/usr/lib64/dovecot/modules/lda                                                          

  log_path:
/var/log/dovecot-deliver-errors.log                                                            

  info_log_path:
/var/log/dovecot-deliver.log                                                              

  auth_socket_path: /var/run/dovecot/auth-master
auth default:
  mechanisms: plain login
  user: vmail
  master_user_separator: #
  passdb:
    driver: passwd-file
    args: /etc/dovecot/dovecot.deny
    deny: yes
  passdb:
    driver: passwd-file
    args: /etc/dovecot/passwd.masters
    master: yes
  passdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap_pass.conf
  userdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap_user.conf
  socket:
    type: listen
    client:
      path: /var/spool/postfix/private/auth
      mode: 432
      user: postfix
      group: postfix
    master:
      path: /var/run/dovecot/auth-master
      mode: 384
      user: vmail
plugin:
  quota: maildir
  quota_rule: *:storage=16G
  quota_rule2: Trash:storage=100M
  quota_rule3: Junk:ignore
  quota_warning: storage=85%% /etc/dovecot/quota_warning.sh 85 %u
  quota_warning2: storage=90%% /etc/dovecot/quota_warning.sh 90 %u
  quota_warning3: storage=95%% /etc/dovecot/quota_warning.sh 95 %u
  acl: vfile:/etc/dovecot/acls:cache_secs=300
  acl_shared_dict: file:/var/lib/dovecot/shared-mailboxes.db
  sieve: /data/vmail/%u/.dovecot.sieve
  sieve_dir: /data/vmail/%u/sieve
  fts: squat
  fts_squat: partial=4 full=7






More information about the dovecot mailing list