Lines Matching refs:folder
123 Folder folder = store.getFolder(src);
124 if (folder == null || !folder.exists()) {
125 System.out.println("Invalid folder: " + src);
129 folder.open(Folder.READ_WRITE);
131 int count = folder.getMessageCount();
132 if (count == 0) { // No messages in the source folder
133 System.out.println(folder.getName() + " is empty");
134 // Close folder, store and return
135 folder.close(false);
140 // Open destination folder, create if reqd
149 Message[] msgs = folder.getMessages(start, end);
153 folder.copyMessages(msgs, dfolder);
154 folder.setFlags(msgs, new Flags(Flags.Flag.DELETED), true);
166 folder.close(expunge);