1mail::ACCOUNT::saveFomladielr:I:nAdCeCxOIUnNfTo(S3yxn)chromnaoiuls::AAPCICOrUeNfTe:r:esnacveeFolderIndexInfo(3x)
2
3
4
6 mail::ACCOUNT::saveFolderIndexInfo - Update message status
7
9 #include <libmail/sync.H>
10
11 mail::ACCOUNT *mail;
12
13
14
15 bool ok=->saveFolderIndexInfo (size_t messageNum, const messageInfo
16 &msgInfo);
17
18 std::string errmsg=mail->getErrmsg();
19
21 mail::ACCOUNT::saveFolderIndexInfo changes the status of a message.
22 messageNum must be between zero and one less than the return code from
23 mail::ACCOUNT::getFolderIndexSize(3x). msgInfo contains the new status
24 flags for this message. See mail::ACCOUNT::getFolderIndexInfo(3x) for
25 a description of message status flags.
26
27 Note: The uid field in msgInfo is ignored. The message is spec‐
28 ified by messageNum, and unique IDs of existing messages cannot
29 be changed.
30
32 This method returns true if it succeeds, or false if it fails. If the
33 method fails, use mail::ACCOUNT::getErrmsg() to read a brief descrip‐
34 tion of the error.
35
37 mail::ACCOUNT::updateFolderIndexFlags(3x), mail::ACCOUNT::update‐
38 FolderIndexInfo(3x), mail::ACCOUNT::getFolderIndexInfo(3x),
39 mail::ACCOUNT::updateKeywords(3x).
40
41
42
43 10 Aprilma2i0l0:6:ACCOUNT::saveFolderIndexInfo(3x)