[Dovecot] quota: ignore deleted messages (?)

Sven Hartge sven at svenhartge.de
Fri Aug 24 16:53:09 EEST 2012


Robert Schetterer <robert at schetterer.org> wrote:
> Am 24.08.2012 15:13, schrieb Sven Hartge:
>> Timo Sirainen <tss at iki.fi> wrote:
>>> On 24.8.2012, at 15.02, Sven Hartge wrote:
>> 
>>>> Ignoring the content (or increasing the quota) of the Trash folder is
>>>> easy and no problem, but ignoring deleted messages seems impossible
>>>> without changes to the code.

>>>> So I propose an additional flag for the quota_rule config option to be
>>>> able to enable a more lax interpretation of the quota enforcement:
>>>>
>>>>  quota_rule = *:storage=1G:ignoredeleted
>>>>  quota_rule2 = Trash:storage=+100M
 
>>> This can't be implemented race-condition-free without huge changes
>>> to code.
>> 
>> Damn, too bad.
>> 
>> I know for sure either my users or my 1st level support team are
>> going to kill me if I don't find a solution.
>> 
>> Is is possible to forcibly expunge a message at once, directly after
>> a client has marked it as deleted? Kind of the opposite of the
>> lazy_expunge plugin?

> hm perhaps as workaround

> http://wiki2.dovecot.org/Plugins/deleted-to-trash
> and do often
> http://wiki2.dovecot.org/Plugins/Expire
> via cron i.e
> doveadm expunge -A mailbox Trash savedbefore 1h

I stumbled upon deleted_to_trash 5 minutes ago. This could work, if the
code still works with dovecot 2.1. 

Grüße,
Sven.

-- 
Sigmentation fault. Core dumped.




More information about the dovecot mailing list