I think a trick could be to move all messages in DeltaChat folder to INBOX and then reinstall delta chat, not tested this myself
UPDATE: Check this: