1MAIL::FOLDER::HASMES(3x)Cone: COnsole Newsreader And EMAIL::FOLDER::HASMES(3x)
2
3
4
6 mail::folder::hasMessages - Determine if the folder is capable of
7 storing messages
8
10 #include <libmail/mail.H>
11
12 mail::folder *folder;
13
14 bool flag=folder->hasMessages(void);
15
17 Some folders contain messages. Other folders contain other folder
18 (subfolders). Some IMAP servers are capable of creating dual-purpose
19 folders that contain both messages and other subfolders. The
20 hasMessages method indicates whether folder is capable of storing
21 messages.
22
24 A true result indicates that folder is capable of storing messages. It
25 may not necessarily mean that folder actually contains any messages, it
26 might very well be an empty folder.
27
28 Note
29 POP3 folders return a true, even though application cannot directly
30 add messages to POP3 folders. Applications should interpret a true
31 result to mean that:
32
33 · mail::folder::open(3x) may be used to open this folder.
34
35 · This folder´s mail::folder::addmessage(3x) method, and using
36 this folder as a parameter to mail::folder::copyMessagesTo(3x)
37 will probably work.
38
39 Applications should interpret a false result as a guarantee that
40 neither of the above procedures will work.
41
43 mail::folder::hasSubFolders(3x).
44
45
46
47[FIXME: source] 05/08/2010 MAIL::FOLDER::HASMES(3x)