MCPcopy Create free account
hub / github.com/M66B/FairEmail / copyMessages

Method copyMessages

app/src/main/java/javax/mail/Folder.java:1190–1198  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

existsMethod · 0.45
getFullNameMethod · 0.45
appendMessagesMethod · 0.45

Tested by

no test coverage detected