diff --git a/components/microsoft_outlook/package.json b/components/microsoft_outlook/package.json index 43afc41c2140a..7e71ad759d19b 100644 --- a/components/microsoft_outlook/package.json +++ b/components/microsoft_outlook/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/microsoft_outlook", - "version": "1.7.1", + "version": "1.7.2", "description": "Pipedream Microsoft Outlook Components", "main": "microsoft_outlook.app.mjs", "keywords": [ diff --git a/components/microsoft_outlook/sources/common/common-new-email.mjs b/components/microsoft_outlook/sources/common/common-new-email.mjs index bb3ee8ebd0a7a..d84defaf85e30 100644 --- a/components/microsoft_outlook/sources/common/common-new-email.mjs +++ b/components/microsoft_outlook/sources/common/common-new-email.mjs @@ -19,7 +19,7 @@ export default { this.db.set("draftsFolderId", await this.getFolderIdByName("Drafts")); const events = await this.getSampleEvents({ - pageSize: 25, + pageSize: 5, }); if (!events || events.length == 0) { return; diff --git a/components/microsoft_outlook/sources/new-attachment-received/new-attachment-received.mjs b/components/microsoft_outlook/sources/new-attachment-received/new-attachment-received.mjs index 1192236a7a7fb..3ec847c8422e9 100644 --- a/components/microsoft_outlook/sources/new-attachment-received/new-attachment-received.mjs +++ b/components/microsoft_outlook/sources/new-attachment-received/new-attachment-received.mjs @@ -6,7 +6,7 @@ export default { key: "microsoft_outlook-new-attachment-received", name: "New Attachment Received (Instant)", description: "Emit new event when a new email containing one or more attachments arrives in a specified Microsoft Outlook folder.", - version: "0.1.1", + version: "0.1.2", type: "source", dedupe: "unique", props: { @@ -52,23 +52,6 @@ export default { } return attachments; }, - async getMessageAttachments(message) { - const { value: attachments } = await this.microsoftOutlook.listAttachments({ - messageId: message.id, - }); - if (!attachments?.length) { - return []; - } - return attachments.map((attachment) => ({ - ...attachment, - messageId: message.id, - messageSubject: message.subject, - messageSender: message.sender, - messageReceivedDateTime: message.receivedDateTime, - parentFolderId: message.parentFolderId, - contentBytes: undefined, - })); - }, async stashAttachment(item) { const messageAttachment = await this.microsoftOutlook.getAttachment({ messageId: item.messageId, diff --git a/components/microsoft_outlook/sources/new-email/new-email.mjs b/components/microsoft_outlook/sources/new-email/new-email.mjs index a58c9bfd79985..4d186ae546374 100644 --- a/components/microsoft_outlook/sources/new-email/new-email.mjs +++ b/components/microsoft_outlook/sources/new-email/new-email.mjs @@ -7,7 +7,7 @@ export default { key: "microsoft_outlook-new-email", name: "New Email Event (Instant)", description: "Emit new event when an email is received in specified folders.", - version: "0.1.3", + version: "0.1.4", type: "source", dedupe: "unique", methods: {