1        ConeĀ©
2
3MAIL::ACCOUNT::GETME(3x)Cone: COnsole Newsreader And EMAIL::ACCOUNT::GETME(3x)
4
5
6

NAME

8       mail::ACCOUNT::getMessageContentDecoded - Read message content
9

SYNOPSIS

11       #include <libmail/sync.H>
12
13
14       class myStoreCallback : public mail::ACCOUNT::Store {
15
16       public:
17           void search(size_t messageNumber, std::string messageContents);
18       };
19
20       myStoreCallback storeCallback;
21
22       mail::ACCOUNT *mail;
23
24       bool ok=mail->getMessageContentDecoded(size_t messageNum, bool peek,
25                                              const mail::mimestruct &messagePart,
26                                              storeCallback);
27
28                                              std::string errmsg=mail->getErrmsg();
29

USAGE

31       mail::ACCOUNT::getMessagesContentDecoded is similar to
32       mail::ACCOUNT::getMessageContent(3x) with one key difference:
33       quoted-printable and base64 MIME content is automatically decoded.
34       storeCallback's store method receives the decoded binary content.
35

RETURN CODES

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

SEE ALSO

42       mail::ACCOUNT::getMessageContent(3x),
43       mail::ACCOUNT::getMessageEnvelope(3x),
44       mail::ACCOUNT::getMessageStructure(3x).
45

AUTHOR

47       Sam Varshavchik
48
49
50
51ConeĀ©                             08/25/2016          MAIL::ACCOUNT::GETME(3x)
Impressum