mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12:22 -05:00
IMAP: encode source path in copyMessage
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1552 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
22532a2bc4
commit
f81c17b1bd
@ -2562,7 +2562,7 @@ public class DavExchangeSession extends ExchangeSession {
|
||||
|
||||
protected void copyMessage(String sourceUrl, String targetFolder) throws IOException {
|
||||
String targetPath = URIUtil.encodePath(getFolderPath(targetFolder)) + '/' + UUID.randomUUID().toString();
|
||||
CopyMethod method = new CopyMethod(sourceUrl, targetPath, false);
|
||||
CopyMethod method = new CopyMethod(URIUtil.encodePath(sourceUrl), targetPath, false);
|
||||
// allow rename if a message with the same name exists
|
||||
method.addRequestHeader("Allow-Rename", "t");
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user