1        Cone©
2
3MAIL::FOLDER::HASMES(3x)Cone: COnsole Newsreader And EMAIL::FOLDER::HASMES(3x)
4
5
6

NAME

8       mail::folder::hasMessages - Determine if the folder is capable of
9       storing messages
10

SYNOPSIS

12       #include <libmail/mail.H>
13
14       mail::folder *folder;
15
16       bool flag=folder->hasMessages(void);
17

USAGE

19       Some folders contain messages. Other folders contain other folder
20       (subfolders). Some IMAP servers are capable of creating dual-purpose
21       folders that contain both messages and other subfolders. The
22       hasMessages method indicates whether folder is capable of storing
23       messages.
24

RETURN CODES

26       A true result indicates that folder is capable of storing messages. It
27       may not necessarily mean that folder actually contains any messages, it
28       might very well be an empty folder.
29
30           Note
31           POP3 folders return a true, even though application cannot directly
32           add messages to POP3 folders. Applications should interpret a true
33           result to mean that:
34
35           ·   mail::folder::open(3x) may be used to open this folder.
36
37           ·   This folder's mail::folder::addmessage(3x) method, and using
38               this folder as a parameter to mail::folder::copyMessagesTo(3x)
39               will probably work.
40
41           Applications should interpret a false result as a guarantee that
42           neither of the above procedures will work.
43

SEE ALSO

45       mail::folder::hasSubFolders(3x).
46

AUTHOR

48       Sam Varshavchik
49
50
51
52Cone©                             08/25/2016          MAIL::FOLDER::HASMES(3x)
Impressum