Independentsoft
- any library, any programming language
Home
Purchase
Support
Company
Contact
JWebDAV for Exchange
>
Tutorial
> Copy item or folder
The following example shows you how to copy item or folder.
import com.independentsoft.webdav.exchange.WebdavClient; import com.independentsoft.webdav.exchange.WebdavException; public class Example { public static void main(final String[] args) { try { WebdavClient client = new WebdavClient("https://myserver/exchange/emailaddress", "username", "password"); client.copy("https://myserver/exchange/emailaddress/Inbox/message1.eml", "https://myserver/exchange/emailaddress/Backup/message1.eml", false, true); } catch (WebdavException e) { e.printStackTrace(); } } }