Automatically create labels
Brought to you by:
ozami
If a label does not exit on the imap server, an error is given.
Since I'm not proficient in python, I created a simple patch to create the label.
Simple because, every time I log on, I call the create method, and ignore any resulting errors.
The correct thing to do would be to see if the label already exists, and if not, then create it...
Still, works for me (uploading to a google account) :-)
patch created from imap-upload-1.2
patch to automatically create label
Thank you for your suggestion!
I'll take in your patch.
(I may have a try "check if the label already exists" method.)
Thanks a lot for this patch. Really helpfull if one have a lot of mbox files to upload. A simple bash script can upload them all directly to an empty GMAIL box. Let it run during the night...
Last edit: Adrien Allard 2015-01-03