Yes as @MrDoom3412 advised for an IMAP account go to “Menu / Accounts” and click the IMAP tab and look at the bottom in “Special Folders” and make sure that the Archive Folder name “matches the Archive folder under your IMAP account” as in the below Gmail example screenshot where eg: All Mail is the Gmail Archive folder under a Gmail account.
Some IMAP account Archive folders are just called Archive or User-Archive etc.
If the Archive folder name doesn’t match your account, then remove “automatically detect special folder names” and update to the correct Archive folder name.
