Pike v8.1 release 6

Method Protocols.IMAP.parse_line()->get_atom_options()


Method get_atom_options

mapping get_atom_options(int max_depth)

Description

Reads an atom, optionally followd by a list enclosed in square brackets. Naturally, the atom itself cannot contain any brackets.

Returns a mapping type : "atom", atom : name, raw : name[options] options : parsed options, range : ({ start, size })