Closed gekrap closed 1 year ago
I believe this solves your problem:
imaps conn("xxx", 993);
conn.authenticate("xxx", "xxx", imaps::auth_method_t::LOGIN);
conn.select(list<string>({"Inbox"}));
list<unsigned long> messages;
conn.search(list<imap::search_condition_t>({imap::search_condition_t(imap::search_condition_t::SID_LIST, list<imap::messages_range_t>{make_pair(100, std::nullopt)})}), messages, true);
Note the nullopt
for the criteria you have asked.
Yes, this solves my question, thank you.
Is there a possibility to have a range of
imap::messages_range_t
include the maximum sequence number without having to know it? RFC9051 allows the special character "*" for this case. Can I use this via mailio?