mail::ACCOUNT::getMessageContentDecoded.3x man page

Cone©

mail::ACCOUNT::getMessageContentDecoded — Read message content

Synopsis

#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();

Usage

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.

Return Codes

This method returns true if it succeeds, or false if it fails. If the method fails, use mail::ACCOUNT::getErrmsg() to read a brief description of the error.

See Also

mail::ACCOUNT::getMessageContent(3x), mail::ACCOUNT::getMessageEnvelope(3x), mail::ACCOUNT::getMessageStructure(3x).

Author

Sam Varshavchik

Info

08/25/2013 Cone© Cone: COnsole Newsreader And E