1MAIL::ACCOUNT::SAVEF(3x)Cone: COnsole Newsreader And EMAIL::ACCOUNT::SAVEF(3x)
2
3
4
6 mail::ACCOUNT::saveFolderIndexInfo - Update message status
7
9 #include <libmail/sync.H>
10
11 mail::ACCOUNT *mail;
12
13 bool ok=->saveFolderIndexInfo(size_t messageNum,
14 const messageInfo &msgInfo);
15
16 std::string errmsg=mail->getErrmsg();
17
19 mail::ACCOUNT::saveFolderIndexInfo changes the status of a message.
20
21
22
23 messageNum must be between zero and one less than the return code from
24 mail::ACCOUNT::getFolderIndexSize(3x). msgInfo contains the new status
25 flags for this message. See mail::ACCOUNT::getFolderIndexInfo(3x) for a
26 description of message status flags.
27
28 Note
29 The uid field in msgInfo is ignored. The message is specified by
30 messageNum, and unique IDs of existing messages cannot be changed.
31
33 This method returns true if it succeeds, or false if it fails. If the
34 method fails, use mail::ACCOUNT::getErrmsg() to read a brief
35 description of the error.
36
38 mail::ACCOUNT::updateFolderIndexFlags(3x),
39 mail::ACCOUNT::updateFolderIndexInfo(3x),
40 mail::ACCOUNT::getFolderIndexInfo(3x),
41 mail::ACCOUNT::updateKeywords(3x).
42
43
44
45[FIXME: source] 05/08/2010 MAIL::ACCOUNT::SAVEF(3x)