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:
mguessan 2010-11-22 22:42:37 +00:00
parent 22532a2bc4
commit f81c17b1bd
1 changed files with 1 additions and 1 deletions

View File

@ -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 {