Trash plugin unexpected results

Stephan H herker at gmail.com
Mon Oct 16 19:36:14 EEST 2017


Something about the calculation is wrong.  The user I was testing with only
had the 1 large email in the trash with a 30 MB quota.  If I need 17.5 MB
and I have a 16MB file I can delete, then removing the file releases enough
space.  It seems as though the trash plugin only accounts for email files
during calculations, not also including quota total.

On Oct 15, 2017 11:27 PM, "Aki Tuomi" <aki.tuomi at dovecot.fi> wrote:

> Trash plugin won't delete messages from your folders if the deletion
> would not give enough space to start with, and in your case removing the
> attachment would have still left the user over quota, so trash plugin
> did not take action.
>
> Oct 07 17:33:13 lmtp(31543, 123 at testdo.com): Debug: trash plugin: Failed
> to remove enough messages (needed 17035766 bytes, expunged only 16803594
> bytes)
>
> Aki
>
> On 16.10.2017 09:06, Aki Tuomi wrote:
> > Does indeed sound bit strange, will have to try replicate this to see
> > what happens.
> >
> > Aki
> >
> >
> > On 13.10.2017 23:37, Stephan Herker wrote:
> >> Just wondering if anyone has seen this behavior or if there are some
> >> documents that would let me know the limitations of the trash plugin.
> >> I don't think I'll be commonly using accounts with 30 MB quotas, but I
> >> feel like the trash plugin should account for the whole quota.
> >>
> >> Any help is appreciated.
> >>
> >> On 10/10/2017 8:20 AM, Stephan Herker wrote:
> >>> I have the trash plugin enabled and testing it out I had an account
> >>> with a 30MB quota.  In the accounts trash it had an email with a
> >>> large attachment.  I sent the same email again to the account
> >>> expecting the trash plugin to purge the message from trash to make
> >>> space for the new message in the inbox.  However I got an error
> >>> saying it couldn't remove enough trash to make space.  This behavior
> >>> seems unexpected because it seems like the trash plugin didn't
> >>> account for the quota and size available. Debug logs and dovecot -n
> >>> output below.
> >>>
> >>> SNIP
> >>>
> >>> Any help is appreciated, thanks.
> >>>
>


More information about the dovecot mailing list