mail::ACCOUNT::getMessageContentDecoded — Read message content
#include <libmail/sync.H>
class myStoreCallback : public mail::ACCOUNT::Store {
public:
void search(size_t messageNumber, std::string messageContents);
};
myStoreCallback storeCallback;
mail::ACCOUNT *mail;
bool
ok=mail->getMessageContentDecoded( |
size_t messageNum, |
bool peek, | |
const mail::mimestruct &messagePart, | |
storeCallback) ; |
std::string errmsg=mail->getErrmsg();
mail::ACCOUNT::getMessagesContentDecoded
is
similar to mail::ACCOUNT::getMessageContent(3x)
with one key difference: quoted-printable
and base64
MIME content is automatically
decoded. storeCallback
's store
method receives the decoded binary
content.