[Dovecot] expire_dict - Folder names with spaces

michael at euroinfissi.eu michael at euroinfissi.eu
Sat Nov 14 20:03:31 EET 2009


Hi!

How to deal with IMAP foldernames that include spaces when setting up the expire tool for them?

I have the folder 

Elementy usuni&ARk-te

but 

expire: Wiadomo&AVs-ci-&AVo-mieci 7 Elementy?usuni&ARk-te 7 INBOX 365 

does not work...

and

expire: Wiadomo&AVs-ci-&AVo-mieci 7 Elementy usuni&ARk-te 7 INBOX 365 

produces the following:


Stopping Dovecot Imap:                                     [  OK  ]
Starting Dovecot Imap: ☺ILoading modules from directory: /usr/lib64/dovecot/imap
☺IModule loaded: /usr/lib64/dovecot/imap/lib10_quota_plugin.so
☺IModule loaded: /usr/lib64/dovecot/imap/lib11_imap_quota_plugin.so
☺IModule loaded: /usr/lib64/dovecot/imap/lib20_autocreate_plugin.so
☺IModule loaded: /usr/lib64/dovecot/imap/lib20_expire_plugin.so
☺IEffective uid=99, gid=99, home=/tmp
☺IQuota root: name=user backend=dict args=:proxy::quota
☺IQuota rule: root=user mailbox=* bytes=1073741824 messages=0
☺IQuota warning: bytes=1020054732 (95%) messages=0 command=/usr/local/bin/quota-warning.sh 95
☺IQuota warning: bytes=858993459 (80%) messages=0 command=/usr/local/bin/quota-warning.sh 80
☺Iexpire: pattern=Wiadomo&AVs-ci-&AVo-mieci type=expunge secs=604800
☺Iexpire: pattern=Elementy type=expunge secs=0
☺Iexpire: pattern=7 type=expunge secs=0
☺Fexpire: Missing expire days for mailbox '365'
Error: imap dump-capability process returned 89
Fatal: Invalid configuration in /etc/dovecot.conf
                                                           [FAILED]


My conf:
 
# OS: Linux 2.6.30.9-96.fc11.x86_64 x86_64 Fedora release 11 (Leonidas)
info_log_path: /var/log/maillog
protocols: imaps
ssl_listen: *
ssl: required
ssl_cert_file: /etc/pki/certs/dovecot/dovecot.pem
ssl_key_file: /etc/pki/certs/dovecot/dovecot_key.pem
ssl_cipher_list: ALL:!ADH!LOW:!SSLv2:!EXP:+HIGH:+MEDIUM
disable_plaintext_auth: yes
verbose_ssl: yes
login_dir: /var/run/dovecot/login
login_executable: /usr/libexec/dovecot/imap-login
mail_privileged_group: dovecot_mail
mail_debug: yes
mail_plugins: autocreate quota imap_quota expire
lda:
  postmaster_address: root at localhost
auth default:
  passdb:
    driver: sql
    args: /etc/dovecot-sql.conf
  userdb:
    driver: sql
    args: /etc/dovecot-sql.conf
plugin:
  quota: dict:user::proxy::quota
  quota_rule: *:storage=1048576
  quota_warning: storage=95%% /usr/local/bin/quota-warning.sh 95
  quota_warning2: storage=80%% /usr/local/bin/quota-warning.sh 80
  expire: Wiadomo&AVs-ci-&AVo-mieci 7 Elementy?usuni&ARk-te 7 INBOX 365
  expire_dict: proxy::expire
dict:
  quota: mysql:/etc/dovecot-dict-quota.conf
  expire: mysql:/etc/dovecot-dict-expire.conf


Thanks!

Michael Lattari


More information about the dovecot mailing list