michael at euroinfissi.eu
2009-Nov-14 18:03 UTC
[Dovecot] expire_dict - Folder names with spaces
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
On Sat, 2009-11-14 at 19:03 +0100, michael at euroinfissi.eu wrote:> How to deal with IMAP foldernames that include spaces when setting up the expire tool for them?I hoped no one would ever want that.. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20091116/ddc679c6/attachment-0002.bin>
michael at euroinfissi.eu
2009-Nov-16 19:14 UTC
[Dovecot] expire_dict - Folder names with spaces
Hi again! The problem is that polish versions of standard windows email clients like Windows Mail, Outlook Express and Microsoft Outlook create mail folders with spaces, like "Skrzynka odbiorcza", "Elementy wys?ane", "Elementy usuni?te"... How to set then the expire or quota plugins for them ? Best regards Michael Lattari
On 11/16/2009, michael at euroinfissi.eu (michael at euroinfissi.eu) wrote:> The problem is that polish versions of standard windows email clients > like Windows Mail, Outlook Express and Microsoft Outlook create mail > folders with spaces, like "Skrzynka odbiorcza", "Elementy wysBane", > "Elementy usunite"...So do English versions: Sent Items, Deleted Items -- Best regards, Charles
michael at euroinfissi.eu
2009-Nov-18 18:50 UTC
[Dovecot] expire_dict - Folder names with spaces
Yes but how to setup the expire tool for foldernames that contain spaces? 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
On Sat, 2009-11-14 at 19:03 +0100, michael at euroinfissi.eu wrote:> How to deal with IMAP foldernames that include spaces when setting up the expire tool for them?http://hg.dovecot.org/dovecot-1.2/rev/91c6b067f464 adds support for: expire = "foo bar" 5 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20091209/52da1bdb/attachment-0002.bin>