Copy the specified Messages from this Folder into another Folder. This operation appends these Messages to the destination Folder. The destination Folder does not have to be opened. An appropriate MessageCountEvent is delivered to any MessageCountListener registered on the destination folder when t
(Message[] msgs, Folder folder)
| 1188 | * @see #appendMessages |
| 1189 | */ |
| 1190 | public void copyMessages(Message[] msgs, Folder folder) |
| 1191 | throws MessagingException { |
| 1192 | if (!folder.exists()) |
| 1193 | throw new FolderNotFoundException( |
| 1194 | folder.getFullName() + " does not exist", |
| 1195 | folder); |
| 1196 | |
| 1197 | folder.appendMessages(msgs); |
| 1198 | } |
| 1199 | |
| 1200 | /** |
| 1201 | * Expunge (permanently remove) messages marked DELETED. Returns an |
nothing calls this directly
no test coverage detected