@mano.swerts: I am not quite sure but aren't labels just IMAP folders? So if you know how to move or copy mails from one folder to another via IMAP you can use that. If you want to assign multiple labels you have to copy the mail (yeah, kind of sucks, I know). There are plenty of IMAP libraries out there. I tried…