Skip to content
Snippets Groups Projects
Commit ac64841d authored by Niels Möller's avatar Niels Möller
Browse files

New class imap_atom_options, used for FETCH responses.

Rev: lib/modules/Protocols.pmod/IMAP.pmod/types.pmod:1.4
parent 7b09396e
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,27 @@ class imap_atom ...@@ -26,6 +26,27 @@ class imap_atom
string format() { return name; } 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 class imap_string
{ {
string data; string data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment