[Dovecot] trash plugin

Timo Sirainen
Wed, 18 Apr 2012 16:29:58 -0000

On 18.4.2012, at 11.22, Cor Bosman wrote:

> The trash plugin docs say:
>
> "Normally if a message can't be saved/copied because it would
bring user over quota, the save/copy fails with "Quota exceeded"
error. The trash plugin can be used to avoid such situations by making Dovecot
automatically expunge oldest messages from configured mailboxes until the
message can be saved"
>
> This leads me to believe that if a message cant be stored, the plugin would
avoid returning a quota error, but instead delete/expunge messages until the
original message can fit, and then complete the command.

Yes.

> But I see something different, at least using the plugin in imap (havent
tried it on lmtp). When I drag a message to a folder thats almost full, and the
message doesnt fit, I get an actual quota error:
>
> 23 uid copy 454343 "Spam"
> 23 NO [OVERQUOTA] Quota exceeded (mailbox for user is full)
>
> After my client sees this error, I see the trash plugin creating space. But
then it's too late right? The client already has a visible error. Am I just
misunderstanding how the trash plugin is supposed to work?

Fixed: http://hg.dovecot.org/dovecot-2.1/rev/51b40cffb628