How does the mail get into that DeltaChat folder? How does that get rid of the spam?
About where I'd have to change things: guess why I asked for any knowledge about the procmail file for DeltaChat. That is a standard way to tell a mail server, how to handle incoming mail.
Yes, that could also move mail to the DeltaChat-Folder, BTW. But it has to know which.