.. _plugin-lazy-expunge: =================== lazy-expunge plugin =================== .. seealso:: See :ref:`lazy_expunge_plugin` for general plugin information. Settings ^^^^^^^^ .. dovecot_plugin:setting:: lazy_expunge :plugin: lazy-expunge :seealso: @lazy_expunge_plugin-storage_locations :values: @string The mailbox/namespace to move messages to when expunged. This setting MUST be defined or else lazy-expunge plugin will not be active. .. dovecot_plugin:setting:: lazy_expunge_exclude :added: v2.3.17 :plugin: lazy-expunge :values: @string Mailbox name/wildcard to exclude from lazy expunging. Use either mailbox names or refer to them using special-use flags (e.g. ``\Trash``). To exclude additional mailboxes, add sequential numbers to the end of the plugin name. For example: .. code-block:: none lazy_expunge_exclude = \Drafts lazy_expunge_exclude2 = External Accounts/* .. dovecot_plugin:setting:: lazy_expunge_only_last_instance :default: no :plugin: lazy-expunge :values: @boolean If true, only move to expunged storage if this is the last copy of the message in the user's account. This setting works with the following mailbox formats: * :ref:`Maildir ` (with :dovecot_core:ref:`maildir_copy_with_hardlinks = yes `, which is the default) * :ref:`sdbox/mdbox ` * :ref:`obox with fs-dictmap ` .. warning:: This setting does not work with obox without fs-dictmap (e.g. :ref:`S3-only ` setup).