Thanks, that's it! I've added it to the dovecot wiki: http://wiki.dovecot.org/Plugins/Expire
By the way:
You are using:
#!/bin/bash MAIL_PLUGINS=${mail_plugins//imap_quota/} /usr/lib/dovecot/expire-tool $1
While "mail_plugins" in not defined and therefore empty it's the same like:
#!/bin/bash MAIL_PLUGINS= /usr/lib/dovecot/expire-tool $1
so you are not removing just imap_quota but your are removing _all_ plugins. Just for correctness :-)
Ralf
Robert Schetterer schrieb am 08.07.2009 11:57:
Hm, I ve read
http://dovecot.org/pipermail/dovecot/2009-June/040126.html
and used this script ( only problem to original was case sensitve mail_plugins)
#!/bin/bash MAIL_PLUGINS=${mail_plugins//imap_quota/} /usr/lib/dovecot/expire-tool $1
now it runs dovecot -c /etc/dovecot/dovecot.conf --exec-mail ext /usr/sbin/expire-tool.sh --test Info: Loading modules from directory: /usr/lib/dovecot/modules/imap Info: robert@schetterer.com/Trash: stop, expire time in future: Wed Jul 15 10:34:39 2009
but i still have to test if there is a real delete
--
Dipl.-Inform. (FH) Ralf Becker Rechenzentrum (r/ft) der FH Trier (Network|Mail|Web|Firewall) University of applied sciences Administrator Schneidershof, D-54293 Trier
Mail: beckerr@fh-trier.de Fon: +49 651 8103 499 Web: http://www.fh-trier.de/~beckerr Fax: +49 651 8103 214 PubKey: http://www.fh-trier.de/~beckerr Crypto: GnuPG, S/MIME
Wenn Gott gewollt haette, dass E-Mail in HTML geschrieben wuerden, endeten Gebete traditionell mit </amen>. (Tom Listen)