Atoms were wrongly allowed in these places.
These have been used in very few places, so this change should be pretty
safe to do. The only affected places are:
* SETMETADATA - Backwards compatibility preserved by earlier commit
* ID - It's not expected that any clients use atoms here
* imapc - Server replies are parsed more strictly now
*str_r = NULL;
return TRUE;
}
- return imap_arg_get_astring(arg, str_r);
+ return imap_arg_get_string(arg, str_r);
}
bool imap_arg_get_literal_size(const struct imap_arg *arg, uoff_t *size_r)
case IMAP_ARG_NIL:
str_append(str, "NIL");
break;
- case IMAP_ARG_ATOM:
- str_append(str, cstr);
- break;
case IMAP_ARG_STRING:
str_append_c(str, '"');
/* NOTE: we're parsing with no-unescape flag,