c27245ef934dbf93c8469fd1ae0519e6971ae64fTimo Sirainen/* Parse IMAP sequence-set and store the result in dest. '*' is stored as
c27245ef934dbf93c8469fd1ae0519e6971ae64fTimo Sirainen (uint32_t)-1. Returns 0 if successful, -1 if input is invalid. */
c27245ef934dbf93c8469fd1ae0519e6971ae64fTimo Sirainenint imap_seq_set_parse(const char *str, ARRAY_TYPE(seq_range) *dest);
e12ccf1e6b606d96bd55ff77db3aa873127d6c72Timo Sirainen/* Like imap_seq_set_parse(), but fail if '*' is used. */
e12ccf1e6b606d96bd55ff77db3aa873127d6c72Timo Sirainenint imap_seq_set_nostar_parse(const char *str, ARRAY_TYPE(seq_range) *dest);
c27245ef934dbf93c8469fd1ae0519e6971ae64fTimo Sirainen/* Parse IMAP seq-number / seq-range. */
c27245ef934dbf93c8469fd1ae0519e6971ae64fTimo Sirainenint imap_seq_range_parse(const char *str, uint32_t *seq1_r, uint32_t *seq2_r);