This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.
Differences between revisions 1 and 2
Revision 1 as of 2006-06-18 09:50:35
Size: 1128
Editor: TimothyWhite
Comment: Inital Page Creation
Revision 2 as of 2007-03-09 01:35:46
Size: 803
Editor: TimoSirainen
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
In beta9 it used two hardcoded configuration files. Timo changed this now
and updated dovecot-example.conf:

{{{
 # 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 first deleted in lowest -> highest priority number order
 #trash = /etc/dovecot-trash.conf
}}}
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.
Line 25: Line 15:
# Spam mailbox is emptied before Trash
Line 26: Line 17:
# Trash mailbox is emptied before Sent
Line 27: Line 19:
# If both Sent and "Sent Messages" mailboxes exist, the next oldest message
# to be deleted is looked up from both of the mailboxes.
Line 28: Line 22:
3 Sent Messages
Line 29: Line 24:

'''NB:''' this Wiki page was written from details from an email to the list, and from information read in the wiki. If any of it's wrong, sorry. I'll update it when I have it working.

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 plugin section in dovecot.conf

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)