Skip to content

Commit 0a05f67

Browse files
committed
dedupe by contentId
1 parent 149e90c commit 0a05f67

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/microsoft_outlook/sources/new-attachment-received/new-attachment-received.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import common from "../common/common-new-email.mjs";
2-
import md5 from "md5";
32

43
export default {
54
...common,
@@ -61,7 +60,7 @@ export default {
6160
},
6261
generateMeta(item) {
6362
return {
64-
id: md5(item.id), // id > 64 characters, so dedupe on hash of id
63+
id: item.contentId,
6564
summary: `New attachment ${item.name}`,
6665
ts: Date.parse(item.messageReceivedDateTime),
6766
};

0 commit comments

Comments
 (0)