If you use a local mail client, you could drag all your gmail folders to the local folder area. Most clients will then copy all the emails to a local destination. Then you could have a rule that copies all incoming mail into the local folder, catching any future mails.