Stuck with Flags :-( #328
Replies: 1 comment
-
String returns (output) from all result objects in this library is the pointer to const char ( You have to use C/C++ syntax |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I'm pretty new to programming MCs, but facing some issues here. Actually it should be quite simple, but unfortunately I'm completely stuck here :-D I'd like to do some routines based on the flags val, so something like this:
if (strlen(msg.flags)) { if (msg.flags == "\Seen") { MailClient.printf(msg.flags); } }
But unfortunately the condition msg.flags == "\Seen" doesn't work out. Maybe you have an idea, I've tried pretty much everything :-D
`
void printMessages(std::vector<IMAP_MSG_Item> &msgItems, bool headerOnly) {
for (size_t i = 0; i < msgItems.size(); i++) {
}
}
`
Beta Was this translation helpful? Give feedback.
All reactions