pike.git / lib / modules / Protocols.pmod / IMAP.pmod / types.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/IMAP.pmod/types.pmod:62:   class imap_atom_options   {    string name;    array options;    array range;       void create(string s, string sec, array o, array r)    {    name = s;    options = ({ sec, -  o && imap_list(Array.map(imap_check_array(o[0]->list->atom), +  o && sizeof(o) && +  imap_list(Array.map(imap_check_array(o[0]->list->atom),    imap_string)) }) - ({ 0 });    range = r;    }       string format()    {    werror(sprintf("options:%O\n", options));    return upper_case(name + "[" + Array.map(options, imap_format)*" " + "]")    // NOTE: Only the start index is sent    + (range ? sprintf("<%d>", range[0]) : "");