mirror of
https://github.com/moparisthebest/davmail
synced 2024-11-10 11:25:00 -05: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:
parent
b012b22214
commit
1801f63aaf
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user