How to archive emails on using Mac OSX and any IMAP provider

I have been using FastMail since a long time now and inbox is getting bigger than 20GB and will soon reach a limit of 30GB. I gathered all emails from GMail, Yahoo, Apple etc. using IMAP into FastMail account and it is so good to have all emails in one account. But, as emails are …