58fed57a4b88518fb196c9c8eef9074f30b3df98 |
|
02-Jan-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
autoexpunge: Consider last_rename_stamp on expunge
When expunging by saved date, see if last_rename_stamp
is more recent than saved date, and use that instead.
This prevents mails getting deleted on a folder that
was just renamed, the user probably expects autoexpunge
to consider these emails as fresh. |
8f0503ea115c4bb1eb1857023cc5051cf4bed807 |
|
21-Jun-2016 |
Baofeng Wang <baofeng.wang@dovecot.fi> |
lib-storage: Add autoexpunge_max_mails configuration to autoexpunge
Mails are expunged until mail count is at autoexpunge_max_mails or below.
In below example, autoexpunge will expunge 1 mail when message count > 100
and *then* try to expunge mails that are still older than 2 minutes:
namespace {
..
mailbox Trash {
autoexpunge = 2 mins
autoexpunge_max_mails = 100
}
} |