Automatic Archiving not archiving all folders

Hi
I’m using Proton for mail (IMAP) and have enabled Automatic Archiving and set it to archive All Mail Folders. Just the inbox, sent and archive folders are being archived. But I have a series of custom sub folders (within a folder called Folders) that aren’t being archived. Any ideas? Thanks.