Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Summary

JEMHC can be configured to attach the email to issues when they are either created or commented on. This can be configured to either attach the full email or just specific body parts (HTML or Text).

Info

Note: Attaching email to issue will consume (at least) double data when processing emails, due to uploading the entire email content size as an attachment.

Attach the full email

Below are the steps that needed to add the full email as an attachment on the issue.

...

Below is an example screenshot of the configuration. This configuration will add the full email when the issue is created and commented on.

...

Attach only the Text or HTML Body part.

Below are the steps that needed to add either the HTML or Text body part as an attachment on the issue.

...

Below is an example screenshot of the configuration. This configuration will add both the HTML and Text part of the email to the issue when the issue is created and commented on.

...

Excluding Attached Email Content from outbound notifications

When you have attach email content enabled it will result in these attachment being included within the outbound notification (You may not want this). This can be stopped by having a Global Expression that matches the filename of attachments that you do not want to attach.

...

  • comment-20[0-9]{2}_[0-9]{2}_[0-9]*-[0-9]{4}-.*\.zip as the regex to exclude the Email Content attachments that have been created when a Comment was added to the issue.

  • create-20[0-9]{2}_[0-9]{2}_[0-9]*-[0-9]{4}-.*\.zip can be used to exclude the Email Content attachments that have been added during Issue Creation.

Configuring Exclusion

In this example we want to exclude comment-2011_06_19-0542-ryan@thepluginpeople.com-5.zip. This means we will use comment-20[0-9]{2}_[0-9]{2}_[0-9]*-[0-9]{4}-.*\.zip to match the attachment.

  1. Go to Exclusions > Exclude attachment by content type, size and file name and press create.

  2. Enter the Attachment Content Type. “application/zip” in this example.

  3. Specify a File name Regex that will match the attachment name. In this case the Regex will be comment-20[0-9]{2}_[0-9]{2}_[0-9]*-[0-9]{4}-.*\.zip

  4. Specify Outgoing Emails within Direction. So that this only applies on outgoing emails.

  5. Specify the Reason why you would like these attachments to be excluded.

...

Testing Exclusion

Once configured, you will then be able to test this configuration by running a Test Case that creates a comment on a issue and then viewing the Audit Event Report to see that the attachment has been excluded from the notification.

...