mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 10:47:59 -05:00
IMAP: fix space at end of folder name
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@755 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
e02aa555a9
commit
f377b76d45
@ -836,10 +836,6 @@ public class ExchangeSession {
|
|||||||
folder.unreadCount = getIntPropertyIfExists(properties, "unreadcount", URN_SCHEMAS_HTTPMAIL);
|
folder.unreadCount = getIntPropertyIfExists(properties, "unreadcount", URN_SCHEMAS_HTTPMAIL);
|
||||||
folder.contenttag = getPropertyIfExists(properties, "contenttag", Namespace.getNamespace("http://schemas.microsoft.com/repl/"));
|
folder.contenttag = getPropertyIfExists(properties, "contenttag", Namespace.getNamespace("http://schemas.microsoft.com/repl/"));
|
||||||
|
|
||||||
if (href.endsWith("/")) {
|
|
||||||
href = href.substring(0, href.length() - 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// replace well known folder names
|
// replace well known folder names
|
||||||
if (href.startsWith(inboxUrl)) {
|
if (href.startsWith(inboxUrl)) {
|
||||||
folder.folderPath = href.replaceFirst(inboxUrl, "INBOX");
|
folder.folderPath = href.replaceFirst(inboxUrl, "INBOX");
|
||||||
@ -866,6 +862,9 @@ public class ExchangeSession {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (folder.folderPath.endsWith("/")) {
|
||||||
|
folder.folderPath = folder.folderPath.substring(0, folder.folderPath.length() - 1);
|
||||||
|
}
|
||||||
return folder;
|
return folder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user