Skip to content

Commit

Permalink
[Marketplace Contribution] Email Communication - Content Pack Update (#…
Browse files Browse the repository at this point in the history
…30788)

* "contribution update to pack "Email Communication""

* Update Packs/EmailCommunication/pack_metadata.json

Co-authored-by: Israel Lappe <79846863+ilappe@users.noreply.github.com>

* Update Packs/EmailCommunication/Scripts/SendEmailReply/SendEmailReply.py

Co-authored-by: Israel Lappe <79846863+ilappe@users.noreply.github.com>

* Rename 2_1_0.md to 2_0_14.md

* Update SendEmailReply.yml

* Update Packs/EmailCommunication/ReleaseNotes/2_0_14.md

Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>

---------

Co-authored-by: amontminypa <118302525+amontminypa@users.noreply.github.com>
Co-authored-by: Israel Lappe <79846863+ilappe@users.noreply.github.com>
Co-authored-by: ShirleyDenkberg <62508050+ShirleyDenkberg@users.noreply.github.com>
  • Loading branch information
4 people committed Nov 15, 2023
1 parent 9ef9094 commit 186bbfa
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
7 changes: 7 additions & 0 deletions Packs/EmailCommunication/ReleaseNotes/2_0_14.md
@@ -0,0 +1,7 @@

#### Scripts

##### SendEmailReply

- Updated the **SendEmailReply** script to include a references header when using the **Gmail Single User integration**. This allows email replies sent using this automation to group into conversations in the end user's Gmail inbox.
- Updated the Docker image to: *demisto/python3:3.10.13.80014*.
@@ -1,5 +1,7 @@
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401


import json
import random
import re
Expand Down Expand Up @@ -108,6 +110,11 @@ def execute_reply_mail(incident_id, email_subject, subject_include_incident_id,
"replyTo": service_mail,
"using": mail_sender_instance
}
# If using Gmail Single User,
# add references header to mail_content to properly group replies into conversations in user's inbox.
instances = demisto.getModules()
if instances.get(mail_sender_instance, {}).get("brand") == "Gmail Single User":
mail_content["references"] = email_latest_message
else:
mail_content = {
"to": email_to,
Expand Down
Expand Up @@ -7,12 +7,10 @@ args:
description: Attachment.
isArray: true
name: attachment
- defaultValue:
description: The mailbox from which emails are sent from the 3rd party integration.
- description: The mailbox from which emails are sent from the 3rd party integration.
name: service_mail
- name: mail_sender_instance
description: Name of the mail sender instance name for transmitting emails.
defaultValue:
- name: new_thread
auto: PREDEFINED
predefined:
Expand Down Expand Up @@ -46,7 +44,7 @@ subtype: python3
system: true
type: python
fromversion: 5.0.0
dockerimage: demisto/python3:3.10.13.78960
dockerimage: demisto/python3:3.10.13.80014
tests:
- No tests (auto formatted)
contentitemexportablefields:
Expand All @@ -55,3 +53,4 @@ contentitemexportablefields:
tags: []
scripttarget: 0
runas: DBotWeakRole
runonce: false
2 changes: 1 addition & 1 deletion Packs/EmailCommunication/pack_metadata.json
Expand Up @@ -2,7 +2,7 @@
"name": "Email Communication",
"description": "Do you have to send multiple emails to end users? This content pack helps you streamline the process and automate updates, notifications and more.\n",
"support": "xsoar",
"currentVersion": "2.0.13",
"currentVersion": "2.0.14",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"videos": [
Expand Down

0 comments on commit 186bbfa

Please sign in to comment.