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

NAME

8       mail::ACCOUNT::getMessageStructure - Return message MIME structure
9

SYNOPSIS

11       #include <libmail/sync.H>
12
13       #include <libmail/structure.H>
14
15       mail::ACCOUNT *mail;
16
17       bool ok=mail->getMessageStructure(const std::vector<size_t> &msgList,
18                                         std::vector<mail::mimestruct> &structures);
19
20                                         std::string errmsg=mail->getErrmsg();
21
22       mail::mimestruct
23                                                               myMimeStruct=mail->getMessageStructure(size_t messageNum);
24

USAGE

26       msgList specifies a list of messages. Messages are numbered starting
27       with message #0 and up to one less than
28       mail::ACCOUNT::getFolderIndexSize(3x) (when
29       mail::account::getFolderIndexSize returns 6, the messages are numbered
30       0 through 5). Only the messages that appear in msgList are processed by
31       this request. When a message is removed from the folder, by
32       mail::ACCOUNT::updateFolderIndexInfo(3x), the following messages are
33       renumbered accordingly.
34
35           Note
36           Most mail servers allow multiple applications to open the same
37           folder. Therefore, changes to the folder's contents can occur at
38           any time. Before making this request, the application should use
39           mail::ACCOUNT::checkNewMail(3x) to verify that no unexpected
40           changes have been made to the folder's contents.
41
42       This function returns the MIME structure information of each message
43       specified by msgList. This function initializes the structures array to
44       the same size as msgList, with each array member containing the MIME
45       structure for the corresponding message in msgList.
46

RETURN CODES

48       This method returns true if it succeeds, or false if it fails. If the
49       method fails, use mail::ACCOUNT::getErrmsg() to read a brief
50       description of the error.
51
52       The second version of mail::ACCOUNT::getMessageStructure returns the
53       MIME structure of a single message, ignoring any error condition (a
54       failure results in the returned mail::mimestruct object being
55       completely empty).
56

SEE ALSO

58       mail::mimestruct(3x), mail::ACCOUNT::getFolderIndexInfo(3x),
59       mail::ACCOUNT::getFolderIndexSize(3x).
60

AUTHOR

62       Sam Varshavchik
63
64
65
66ConeĀ©                             08/25/2016          MAIL::ACCOUNT::GETME(3x)
Impressum