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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/IMAP.pmod/parse_line.pike:52:   }      string get_atom(int|void with_options)   {    string atom;       werror("get_atom: buffer = '%s'\n", buffer);       sscanf(buffer,    (with_options -  ? "%*[ \t]%[^][(){ \0-\037\177%\"\\]%s" -  : "%*[ \t]%[^(){ \0-\037\177%\"\\]%s"), +  ? "%*[ \t]%[^][(){ \0-\037\177%\"]%s" +  : "%*[ \t]%[^(){ \0-\037\177%\"]%s"),    atom, buffer);      #if 0 /* FIXME: This code is broken */    if (strlen(buffer))    switch(buffer[0])    {    case ' ':    case '\t':    case ')':    case ']':
pike.git/lib/modules/Protocols.pmod/IMAP.pmod/parse_line.pike:226:    atom->range = ({ start, size });       return atom;   }      /* Parses an object that (recursivly) can contain atoms (possible    * with options in brackets) or lists. Note that strings are not    * accepted, as it is a little difficult to wait for the    * continuation of the request.    * -  * FXME: This function is used to read fetch commands. This breaks +  * FIXME: This function is used to read fetch commands. This breaks    * rfc-2060 compliance, as the names of headers can be represented    * as string literals. */      mapping get_simple_list(int max_depth)   {    skip_whitespace();    if (!strlen(buffer))    return 0;       if (buffer[0] == '(')