Branch: Tag:

1998-11-16

1998-11-16 22:26:41 by Niels Möller <nisse@lysator.liu.se>

New class imap_atom_options, used for FETCH responses.

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

26:    string format() { return name; }   }    + class imap_atom_options + { +  string name; +  array options; +  array range; +  +  void create(string s, array o, array r) +  { +  name = s; +  options = o; +  range = r; +  } +  +  string format() +  { +  return name + "[" + Array.map(options, imap_format) + "]" +  // NOTE: Only the start index is sent +  + (range ? sprintf("<%d>", range[0]) : ""); +  } + } +    class imap_string   {    string data;