Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 18 additions & 17 deletions docs/core/plugins/lazy_expunge.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,31 +49,32 @@
::: code-group

```doveconf[dovecot.conf]

mail_plugins {
lazy_expunge = yes
acl = yes
}

acl_driver = vfile

namespace inbox {
mailbox .EXPUNGED {
mailbox "-EXPUNGED" {
autoexpunge = 7days
autoexpunge_max_mails = 100000
# Expunged messages most likely don't want to be included in quota
quota_ignore = yes
# If you use fulltext search, you may want to exclude:

Check failure on line 66 in docs/core/plugins/lazy_expunge.md

View workflow job for this annotation

GitHub Actions / Spell checking

`fulltext` is not a recognized word (unrecognized-spelling)
fts_autoindex = no

# Define ACL so that user cannot list the .EXPUNGED mailbox
# Define ACL so that user cannot list the -EXPUNGED mailbox
acl owner {
rights = rwstipekxa
acl_rights = rwstipekxa
}
}
}

mail_plugins {
lazy_expunge = yes
acl = yes
}
acl_driver = vfile
lazy_expunge_mailbox = "-EXPUNGED"

# Move messages to an .EXPUNGED mailbox
lazy_expunge_mailbox = .EXPUNGED

mailbox .EXPUNGED {
# Expunged messages most likely don't want to be included in quota:
quota_ignore = yes
}
```

:::
Expand Down Expand Up @@ -127,10 +128,10 @@

Doveadm can be used to manually clean expunge storage.

Example to delete all messages in `.EXPUNGED` mailbox older than one day:
Example to delete all messages in `-EXPUNGED` mailbox older than one day:

```sh
doveadm expunge mailbox '.EXPUNGED' savedsince 1d
doveadm expunge mailbox -- '-EXPUNGED' savedsince 1d
```

### Autoexpunge
Expand Down
Loading