by

Microsoft Outlook For Mac Rules Add Multiple Emails

If you don't see the menu bar, you're probably in full-screen mode. Outlook for Office 365 for Mac Outlook 2016 for Mac Outlook 2019 for MacContributors:Last updated: March 5, 2018Most customization options are available on the Outlook menu bar and ribbon. Ooo status on microsoft outlook on mac.

  1. Microsoft Outlook For Mac Rules Add Multiple Emails Addresses To Yahoo
  2. Microsoft Outlook Mac Download
  3. Multiple Rules In Outlook
  4. Microsoft Outlook For Mac Rules Add Multiple Emails Without
  5. Microsoft Outlook For Macbook
-->

Welcome to our free Advanced Microsoft Outlook tutorial. This tutorial is based on Webucator's Advanced Microsoft Outlook 2019 course. Microsoft Outlook allows you the ability to set up multiple email accounts, enabling you to send emails from the different accounts. Titus Classification for Microsoft Outlook on the web is a security and governance add-in that enables organizations to ensure consistent and prudent handling of Outlook emails in real time. Connect to the latest conferences, trainings, and blog posts for Office 365, Office client, and SharePoint developers.

Outlook activates some types of add-ins if the message or appointment that the user is reading or composing satisfies the activation rules of the add-in. This is true for all add-ins that use the 1.1 manifest schema. The user can then choose the add-in from the Outlook UI to start it for the current item.

The following figure shows Outlook add-ins activated in the add-in bar for the message in the Reading Pane.

Specify activation rules in a manifest

To have Outlook activate an add-in for specific conditions, specify activation rules in the add-in manifest by using one of the following Rule elements:

  • Rule element (MailApp complexType) - Specifies an individual rule.
  • Rule element (RuleCollection complexType) - Combines multiple rules using logical operations.

Note

The Rule element that you use to specify an individual rule is of the abstract Rule complex type. Each of the following types of rules extends this abstract Rule complex type. So when you specify an individual rule in a manifest, you must use the xsi:type attribute to further define one of the following types of rules.

For example, the following rule defines an ItemIs rule:<Rule xsi:type='ItemIs' />

The FormType attribute applies to activation rules in the manifest v1.1 but is not defined in VersionOverrides v1.0. So it can't be used when ItemIs is used in the VersionOverrides node.

The following table lists the types of rules that are available. Is microsoft office for mac in the app store. You can find more information following the table and in the specified articles under Create Outlook add-ins for read forms.


Rule nameApplicable formsDescription
ItemIsRead, ComposeChecks to see whether the current item is of the specified type (message or appointment). Can also check the item class and form type.and optionally, item message class.
ItemHasAttachmentReadChecks to see whether the selected item contains an attachment.
ItemHasKnownEntityReadChecks to see whether the selected item contains one or more well-known entities. More information: Match strings in an Outlook item as well-known entities.
ItemHasRegularExpressionMatchReadChecks to see whether the sender's email address, the subject, and/or the body of the selected item contains a match to a regular expression.More information: Use regular expression activation rules to show an Outlook add-in.
RuleCollectionRead, ComposeCombines a set of rules so that you can form more complex rules.

ItemIs rule

The ItemIs complex type defines a rule that evaluates to true if the current item matches the item type, and optionally the item message class if it's stated in the rule.

Specify one of the following item types in the ItemType attribute of an ItemIs rule. You can specify more than one ItemIs rule in a manifest. The ItemType simpleType defines the types of Outlook items that support Outlook add-ins.


ValueDescription
AppointmentSpecifies an item in an Outlook calendar. This includes a meeting item that has been responded to and has an organizer and attendees, or an appointment that does not have an organizer or attendee and is simply an item on the calendar.This corresponds to the IPM.Appointment message class in Outlook.
MessageSpecifies one of the following items received in typically the Inbox:
  • An email message. This corresponds to the IPM.Note message class in Outlook.

  • A meeting request, response, or cancellation. This corresponds to the following message classes in Outlook:

    IPM.Schedule.Meeting.Request

    IPM.Schedule.Meeting.Neg

    IPM.Schedule.Meeting.Pos

    IPM.Schedule.Meeting.Tent

    IPM.Schedule.Meeting.Canceled

Microsoft Outlook For Mac Rules Add Multiple Emails Addresses To Yahoo

The FormType attribute is used to specify the mode (read or compose) in which the add-in should activate.

Note

The ItemIs FormType attribute is defined in schema v1.1 and later but not in VersionOverrides v1.0. Do not include the FormType attribute when defining add-in commands.

After an add-in is activated, you can use the mailbox.item property to obtain the currently selected item in Outlook, and the item.itemType property to obtain the type of the current item.

You can optionally use the ItemClass attribute to specify the message class of the item, and the IncludeSubClasses attribute to specify whether the rule should be true when the item is a subclass of the specified class.

For more information about message classes, see Item Types and Message Classes.

The following example is an ItemIs rule that lets users see the add-in in the Outlook add-in bar when the user is reading a message:

The following example is an ItemIs rule that lets users see the add-in in the Outlook add-in bar when the user is reading a message or appointment.

ItemHasAttachment rule

The ItemHasAttachment complex type defines a rule that checks if the selected item contains an attachment.

ItemHasKnownEntity rule

Before an item is made available to an add-in, the server examines it to determine whether the subject and body contain any text that is likely to be one of the known entities. If any of these entities are found, it is placed in a collection of known entities that you access by using the getEntities or getEntitiesByType method of that item.

You can specify a rule by using ItemHasKnownEntity that shows your add-in when an entity of the specified type is present in the item. You can specify the following known entities in the EntityType attribute of an ItemHasKnownEntity rule:

  • Address
  • Contact
  • EmailAddress
  • MeetingSuggestion
  • PhoneNumber
  • TaskSuggestion
  • URL

You can optionally include a regular expression in the RegularExpression attribute so that your add-in is only shown when an entity that matches the regular expression in present. To obtain matches to regular expressions specified in ItemHasKnownEntity rules, you can use the getRegExMatches or getFilteredEntitiesByName method for the currently selected Outlook item.

The following example shows a collection of Rule elements that show the add-in when one of the specified well-known entities is present in the message.

The following example shows an ItemHasKnownEntity rule with a RegularExpression attribute that activates the add-in when a URL that contains the word 'contoso' is present in a message.

For more information about entities in activation rules, see Match strings in an Outlook item as well-known entities.

ItemHasRegularExpressionMatch rule

The ItemHasRegularExpressionMatch complex type defines a rule that uses a regular expression to match the contents of the specified property of an item. If text that matches the regular expression is found in the specified property of the item, Outlook activates the add-in bar and displays the add-in. You can use the getRegExMatches or getRegExMatchesByName method of the object that represents the currently selected item to obtain matches for the specified regular expression.

The following example shows an ItemHasRegularExpressionMatch that activates the add-in when the body of the selected item contains 'apple', 'banana', or 'coconut', ignoring case.

For more information about using the ItemHasRegularExpressionMatch rule, see Use regular expression activation rules to show an Outlook add-in.

RuleCollection rule

The RuleCollection complex type combines multiple rules into a single rule. You can specify whether the rules in the collection should be combined with a logical OR or a logical AND by using the Mode attribute.

Microsoft Outlook Mac Download

When a logical AND is specified, an item must match all the specified rules in the collection to show the add-in. When a logical OR is specified, an item that matches any of the specified rules in the collection will show the add-in.

Multiple Rules In Outlook

You can combine RuleCollection rules to form complex rules. The following example activates the add-in when the user is viewing an appointment or message item and the subject or body of the item contains an address.

Microsoft Outlook For Mac Rules Add Multiple Emails Without

The following example activates the add-in when the user is composing a message, or when the user is viewing an appointment and the subject or body of the appointment contains an address.

Limits for rules and regular expressions

To provide a satisfactory experience with Outlook add-ins, you should adhere to the activation and API usage guidelines. The following table shows general limits for regular expressions and rules but there are specific rules for different hosts. For more information, see Limits for activation and JavaScript API for Outlook add-ins and Troubleshoot Outlook add-in activation.


Add-in elementGuidelines
Manifest SizeNo larger than 256 KB.
RulesNo more than 15 rules.
ItemHasKnownEntityAn Outlook rich client will apply the rule against the first 1 MB of the body, and not to the rest of the body.
Regular ExpressionsFor ItemHasKnownEntity or ItemHasRegularExpressionMatch rules for all Outlook hosts:
  • Specify no more than 5 regular expressions in activation rules for an Outlook add-in. You cannot install an add-in if you exceed that limit.
  • Specify regular expressions whose anticipated results are returned by the getRegExMatches method call within the first 50 matches.
  • Specify look-ahead assertions in regular expressions, but not look-behind, (?<=text), and negative look-behind (?<!text).
  • Specify regular expressions whose match does not exceed the limits in the table below.
    Limit on length of a regex matchOutlook rich clientsOutlook on iOS and Android
    Item body is plain text1.5 KB3 KB
    Item body it HTML3 KB3 KB

Microsoft Outlook For Macbook

See also