Lines Matching refs:folder
137 static void dumpFolder(Folder folder, boolean recurse, String tab)
139 System.out.println(tab + "Name: " + folder.getName());
140 System.out.println(tab + "Full Name: " + folder.getFullName());
141 System.out.println(tab + "URL: " + folder.getURLName());
144 if (!folder.isSubscribed())
147 if ((folder.getType() & Folder.HOLDS_MESSAGES) != 0) {
148 if (folder.hasNewMessages())
151 folder.getMessageCount());
153 folder.getNewMessageCount());
155 folder.getUnreadMessageCount());
157 if ((folder.getType() & Folder.HOLDS_FOLDERS) != 0)
161 * Demonstrate use of IMAP folder attributes
164 if (folder instanceof IMAPFolder) {
165 IMAPFolder f = (IMAPFolder)folder;
177 if ((folder.getType() & Folder.HOLDS_FOLDERS) != 0) {
179 Folder[] f = folder.list();