I am working on an email client, and I wonder what is the role of slashes in the attribute descriptions of labels. For example, I have a label which looks like this:
((b'\\HasChildren', b'\\Noselect'), b'/', 'my_label_name')
When I try to parse the second element of the first part of the tuple, I end up with one surplus slash like this:
print(labels[15][0][1].decode())
>> Output: \Noselect
So the question is, what is the deep meaning of this slash before "Noselect"? Am I missing something here ?
My ultimate goal is to see whether a label has an attribute called "Noselect" in order to decide whether to render it in the user's interface or not.
The backslash (
\
) is used for flags in the IMAP4 protocol.From Wikipedia: