Branch: Tag:

1999-03-29

1999-03-29 02:13:57 by Henrik Grubbström (Grubba) <grubba@grubba.org>

imap_string() now always uses literal quoting.
Since Pine doesn't understand \-quoting.

Rev: lib/modules/Protocols.pmod/IMAP.pmod/types.pmod:1.25

92:       string format()    { -  if (!sizeof(array_sscanf(data, "%*[^\0-\037\177-\377]%s")[0])) +  // Pine doesn't know about \-quoting... +  if (!sizeof(array_sscanf(data, "%*[^\0-\037\\\"\177-\377]%s")[0]))    return "\"" + replace(data, ({ "\"", "\\" }), ({ "\\\"", "\\\\" }) ) + "\"";    else    return sprintf("{%d}\r\n%s", strlen(data), data);