Email This Issue
📈 Marketplace❓ Support❤️ Feedback🏠 META-INF Apps
Email This Issue - for Jira Cloud
Email This Issue - for Jira Cloud
  • ⬇️Overview
  • Email This Issue - for Jira Cloud
  • Features
  • How Email This Issue Works
  • Secure the email channel with Email This Issue
  • Comparing Email This Issue and Jira Cloud
  • 📤Outgoing Emails
    • Outgoing emails overview
    • Manual emails
      • Configuring manual emails
      • Sending manual emails
    • Email notification schemes and email notifications
    • Workflow post functions
    • Advanced email configuration
    • Customizing email templates
    • Canned Responses (default messages)
    • Scope evaluation
  • 📥Incoming Emails (Mail Handlers)
    • Incoming emails overview
  • Mail handlers - adding / editing
    • General handler settings
    • Filtering
    • Finding issues
    • Setting up rules and actions in the actions editor
      • Adding/editing actions
      • Adding recipients to Request Participants
      • Creating an issue
      • Updating an issue
      • Setting field values
      • Adding comments
      • Sending auto-reply emails
      • Executing workflow transitions
      • Creating a customer
      • Using split regexp
      • Conditions
      • Approve request
      • Decline request
    • Maintaining email chains
    • Mail Handler New UI
  • Global Sender Address Filters
  • Attachment Filters
    • Regular Attachment Handling Deprecation
  • 🤓Administration
    • Outgoing Mail Connections
    • Alerting via Webhooks
      • Webhooks
        • Configuring Slack to receive alerts via webhooks
        • Configuring OpsGenie to Receive alerts via webhooks
        • Configuring Microsoft Teams to receive alerts via webhooks
      • Webhook execution logs
    • Mail Queue
    • Email Audit Log
    • Permissions
    • Recipient Restrictions
    • Incoming Mail Connections
    • Email Security
    • Incoming Mail Queue
    • Incoming Mail Log
    • OAuth2 Credentials
      • Enabling OAuth2 Authorization in your Google Account
      • Enabling OAuth2 Authorization in your Microsoft 365 Account
      • Troubleshooting guides for Microsoft OAuth2 Connections
        • How to fix "BAD User is authenticated but not connected" error​
        • How to fix "401 Unauthorized" error
        • How to fix "key expires_in " error
        • How to fix "Need admin approval" error
  • ☁️Server to Cloud Migration
    • 🛫Server to Cloud - Automatic Migration tool
      • Preparing for the migration
      • Doing the migration
      • Finalizing the migration in Cloud
      • Migration with unsupported Jira versions causes errors
    • Server to Cloud - Manual migration guide for Email This Issue
  • ❓FAQ
    • No recipients error in outgoing emails
    • How-to add custom macro to email Template?
    • Why cannot I select custom event types in notification?
    • How to configure the Email This Issue addon user in Jira Cloud?
    • I get an error: Could not create request on behalf of the sender
    • Why is the Incoming Mail Queue size limited?
    • Outgoing mail not sent - Read timeout error
    • Access restriction icon is not appearing when adding internal attachments via Email this Issue
  • 🌪️General
    • Release Notes
    • API
      • API for Velocity Context Objects - 1.7
      • API for Velocity Context Objects
    • Addon Pages
      • Integrity Check
      • Feedback and Support
    • Security Advisories
      • Email This Issue Security Advisory September 28, 2020
    • Appendix
      • Supported Time Zones
    • Integration of Glass Documentation
Powered by GitBook
On this page
  • Incoming mail accounts
  • Mail handlers
  • Mail handler operation

Was this helpful?

  1. Incoming Emails (Mail Handlers)

Incoming emails overview

Used for processing incoming mails, Create or Edit Jira issues with them.

PreviousScope evaluationNextMail handlers - adding / editing

Last updated 1 year ago

Was this helpful?

Mail handlers process downloaded (fetched) emails from the inboxes configured under mail accounts. Every mail handler is linked to a mail account and defines the actions that should be executed when an incoming email is processed.

Incoming mail accounts

Incoming mail accounts are mailboxes from which Email This Issue can download and process emails.

Note: Incoming mail accounts must be accessible via IMAP4 or POP3 protocols and must support encryption methods like SSL and TLS.

For more information, see .

Mail handlers

Mail handlers are the components responsible for processing the downloaded emails, creating issues and comments, and for executing the actions configured in them. Email This Issue for Jira Cloud comes with a few different predefined mail handler types. All handlers can be fully and flexibly customized.

Rules and actions in the mail handler allow you to do various things with an issue depending email content or issue fields, for example:

  • Save email recipients and senders in custom field or as Request Participants

  • Execute workflow transitions on the issues

  • Send auto-reply emails

  • Update issue fields

  • Create customers

  • Approve or Decline Service Management requests

Generally we advise that there should be only one mail handler per incoming mail connection in order to avoid errors, however, in special cases you might have many handlers working on one incoming mail connection if you want to use Accept filters for processing emails based on what the recipient email address is.

In this case, the logic of the process is the following:

  1. We create an Incoming Queue Item from the incoming email

  2. All enabled mail handlers that are connected to the incoming connection are checked one-by-one

  3. The first one in line starts processing the email by checking the REJECT filters. If email is caught by a reject filter in any of the mail handlers, it will stop processing with a SKIPPED status.

  4. If no reject filters are applicable, we proceed to check the ACCEPT filters one by one - here if the accept filter accepts the email, it will start processing the email based on the Rules and Actions resulting in a SUCCEEDED or ERROR status.

  5. If no accept filters accept the incoming email, then it is returned with a FILTERED_OUT status.

Mail handler operation

  1. The mail handler checks Accept email. This can be used to filter messages in a mailbox if it has multiple email addresses (like mail aliases). By default, all messages are passed through, regardless of the recipient addresses.

    1. If Accept email is set to if any recipient equals to any of the following addresses, then the email is processed if To/CC/BCC address equals to any of the specified email addresses.

    2. If Accept email is set to if any recipient matches any of the following regular expressions then email is processed if To/CC/BCC address matches to any of the specified regular expressions

  2. The mail handler searches for the user on whose behalf the actions will be executed, using the From address in the email:

    1. If the user is found, then they will be used as the Reporter for creating issues, the Author for adding comments, the user who executes transitions, and so on. For any action that cannot be performed using the sender user's permissions, the Default reporter will be used if one is set and fallback to default reporter is enabled.

    2. If the user is not found, but Default reporter is set in the Mail Handler and fallback to the default reporter is enabled, the Default reporter will be used.

    3. If the user is not found and Default reporter is not set or fallback is not enabled, execution is aborted.

    1. If an issue was found, it will be remembered, and some actions can use the issue such as Add comment, Execute transition, Send auto reply, and so on.

    2. If issue was not found, then the first action that is executed is a Create Issue action.

Various filters are applied to accept or reject the incoming message from further processing. Learn more about this here: .

The mail handler tries to find the corresponding issue. Learn more about the applied strategy here: .

Actions are processed. Learn more about it here: .

📥
Incoming mail connections
Filtering
Issue lookups
Setting up rules and actions in the actions editor