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

NAME

6       mail::ACCOUNT::getMessageContentDecoded - Read message content
7

SYNOPSIS

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

USAGE

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

RETURN CODES

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

SEE ALSO

40       mail::ACCOUNT::getMessageContent(3x),
41       mail::ACCOUNT::getMessageEnvelope(3x),
42       mail::ACCOUNT::getMessageStructure(3x).
43
44
45
46[FIXME: source]                   05/08/2010          MAIL::ACCOUNT::GETME(3x)
Impressum