/** * Creates a copy of this item in the specified folder. Calling this method * results in a call to EWS. Copy returns null if the copy operation is * across two mailboxes or between a mailbox and a public folder. * * @param destinationFolderName the destination folder name * @return The copy of this item. * @throws Exception the exception */ public Item copy(WellKnownFolderName destinationFolderName) throws Exception { return this.copy(new FolderId(destinationFolderName)); }
/** * Creates a copy of this item in the specified folder. Calling this method * results in a call to EWS. Copy returns null if the copy operation is * across two mailboxes or between a mailbox and a public folder. * * @param destinationFolderName the destination folder name * @return The copy of this item. * @throws Exception the exception */ public Item copy(WellKnownFolderName destinationFolderName) throws Exception { return this.copy(new FolderId(destinationFolderName)); }