This project is read-only.

Remove label Gmail

Topics: Help requests
Feb 27, 2014 at 6:32 PM
Hello,
I'm trying to delete a gmail label, but this is not removed, there is no error message.
I can add but not remove labels.
This function is operational?
example
'--------
m.labels.remove("Label1/Sub Label")
'--------
Coordinator
Feb 27, 2014 at 7:50 PM
Hi hmayorga,

have you configured the client to download the list of GMail labels? This can be done by done this way:
client.Behavior.MessageFetchMode = client.Behavior.MessageFetchMode | MessageFetchMode.GMailExtendedData;
After this, take a look which labels are in the Message.Labels collection and if the label you're trying to remove really has the name you provide in the Remove method.

Greets,

Pavel
Feb 28, 2014 at 12:44 PM
thanks Pavel, I'll check
good job
Greetings from Santiago, Chile

Horacio