Some time ago I wrote a commandline tool that made a back-up of all the Gmail mails including labels, but using links instead of copies, in a Maildir format that's compatible with any IMAPd.
I use it to have a running "clone" of Gmail on my own server, alway accessible in case Gmail goes down and I need an important mail. The sparseness of the links means each mail is saved only once, regardless of how many labels you attach to it.
I use it to have a running "clone" of Gmail on my own server, alway accessible in case Gmail goes down and I need an important mail. The sparseness of the links means each mail is saved only once, regardless of how many labels you attach to it.
If anyone's interested: https://github.com/relix/gmailcc