This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.
Differences between revisions 2 and 3
Revision 2 as of 2007-03-09 01:35:46
Size: 803
Editor: TimoSirainen
Revision 3 as of 2007-04-06 07:53:11
Size: 832
Editor: TimoSirainen
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
'''Example plugin section in dovecot.conf''' '''Example dovecot.conf:'''
Line 8: Line 8:
protocol imap {
  mail_plugins = trash

Trash Plugin

The Trash plugin. When saving a message would make user go over quota, this plugin automatically deletes the oldest mails from configured mailboxes until the message can be saved within quota limits.

The configuration file is a text file where each line is in format: <priority> <mailbox name>. Mails are deleted in lowest -> highest priority number order.

Example dovecot.conf:

protocol imap {
  mail_plugins = trash

plugin {
  trash = /etc/dovecot-trash.conf

Example dovecot-trash.conf file

# Spam mailbox is emptied before Trash
1 Spam
# Trash mailbox is emptied before Sent
2 Trash
# If both Sent and "Sent Messages" mailboxes exist, the next oldest message
# to be deleted is looked up from both of the mailboxes.
3 Sent
3 Sent Messages

None: Plugins/Trash (last edited 2010-06-15 16:37:06 by TimoSirainen)