mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-14 03:32:22 -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.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
|
||||
if (href.startsWith(inboxUrl)) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user