Skip to content

Commit 429871b

Browse files
committed
Graph: switch back to id as main itemName on calendar events
git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@4054 3d1905a2-6b24-0410-a738-b14d5a86fcbd
1 parent a66eb18 commit 429871b

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/java/davmail/exchange/graph/GraphExchangeSession.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,8 @@ public Event(String folderPath, FolderId folderId, GraphObject graphObject) {
172172
String urlcompname = graphObject.optString("urlcompname");
173173
etag = graphObject.optString("changeKey");
174174

175-
if (urlcompname != null) {
176-
itemName = urlcompname;
177-
} else {
178-
itemName = StringUtil.base64ToUrl(id) + ".EML";
179-
}
175+
// prefer id as itemName
176+
itemName = StringUtil.base64ToUrl(id) + ".EML";
180177
}
181178

182179
public Event(String folderPath, String itemName, String contentClass, String itemBody, String etag, String noneMatch) throws IOException {
@@ -3433,7 +3430,7 @@ public void deleteItem(String folderPath, String itemName) throws IOException {
34333430

34343431
@Override
34353432
public void processItem(String folderPath, String itemName) throws IOException {
3436-
3433+
// TODO mark event messages in inbox processed
34373434
}
34383435

34393436
@Override

0 commit comments

Comments
 (0)