Apple Mail doesn't work with archiving mail

I’ve worked this out, when you archive mail using apple mail it shows as deleted for about 5 minutes and then disappears from there. I’m assuming it’s something todo with the archive timeout.