1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-08-13 16:53:51 -04:00

EWS: replace extension before looking for items in task folder

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1796 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2011-09-26 20:19:27 +00:00
parent b012b22214
commit 1801f63aaf

View File

@ -1621,7 +1621,10 @@ public class EwsExchangeSession extends ExchangeSession {
public Item getItem(String folderPath, String itemName) throws IOException {
EWSMethod.Item item = getEwsItem(folderPath, itemName);
if (item == null && isMainCalendar(folderPath)) {
// look for item in task folder
// look for item in task folder, replace extension first
if (itemName.endsWith(".ics")) {
itemName = itemName.substring(0, itemName.length() - 3) + "EML";
}
item = getEwsItem(TASKS, itemName);
}