The Linx Email plugin contains two functions which are ReadEmail and SendEmail respectively. By using the ReadEmail function, you are able to “poll” your target Mail Box and filter out the mail box items by making use of a number of filters that need to be configured by using Regular Expressions.
Before you begin you must configure your Linx Email plugins to connect to your desired email client, more instructions can be found here.
Once you have your ReadEmail function connection properties configured and are working, you can start to add filters in the bottom section of the ReadEmail properties.
What do each of these fields mean?
Filter body - Information to look for in the body of the emails.
Filter from - Information to look for in the from field of the emails (the display name of the sender’s address).
Filter from address - Information to look for in the from address fields of the emails.
Filter subject - Information to look for in the subject line of the emails.
Filter to - Information to look for in the to field of the emails.
- And: Use the above combination of filters and bind them with an AND operator, meaning all the conditions set must be true for the filter to succeed
- Or: Return mail items that match any one of the configured filters.
Due to there being a varying number of ways filters can be effective, Linx has taken the position not to limit the filtering with internal rules but rather make use of Regular Expressions. There are a number of “flavours” of regular expressions that can be used to filter the information that you want. In the below section are commonly used expressions that can assist you in retrieving your desired emails.
- Find emails containing either of two words (Replace the values enclosed with # with your words to search for): "\b(?:" +#MyFirstWord# + "|" + #MySecondWord# + ")[\b](file://b)"
- Using Linx types:
Filter from address
- Find emails that have been sent from particular domains i.e. @domainname.com: ^[a-zA-Z0-9_.±][+@(?:(?:[a-zA-Z0-9-]+.)?[a-zA-Z]+.)?(#domainname1#|#domainname2#).com$](mailto:+@(?:(?:[a-zA-Z0-9-]+.)?%5ba-zA-Z%5d+.)?(#domainname1#|#domainname2)
- Using Linx Outputs:
Emails from a certain person (company):
- Find email from “Weatherspoon Inc” = \bWeatherspoon\sInc\b
There numerous ways in which to create regex expressions but the above just demonstrates how to use the most basic ones in terms of Linx and filtering. More RegEx tutorials can be found here.