+act #3592 Read stash-capacity from mailbox config

I suggest that we backport this to 2.2.x