Transport Rule to detect Keyword question..

Post number 2 has been selected as the best answer.

jondw1970

New Member
Outlook version
Outlook 2016 64 bit
Email Account
Office 365 Exchange
Good morning, we are attempting to route (to a specific connector that will deal with encryption) outgoing emails that contain a certain keyword - [encrypt]. Although we had some success in testing, we found a few tests failing..

We are using the "subject includes any of these words" and found in the examples below

Working:
Hi, this is a test [encrypt] thanks
[encrypt] test

NOT working
This is a test[encrypt]let me know
Test[encrypt]

So it looks like either the lack of space at the END (or possibly beginning when in the middle) of [encrypt] is causing this to not be detected as a word. Is this expected behaviour on the rule as it's looking for a full word (space before / after) rather than a string of text "within" the subject?

Could anyone point me in the direction if there is another option, such as using 'pattern' (although is that regex?) Many thanks in advance, I have looked for some time through various forums/internet, but cannot see anything that is similar enough to help.
 

jondw1970

New Member
Outlook version
Outlook 2016 64 bit
Email Account
Office 365 Exchange
Good morning, we are attempting to route (to a specific connector that will deal with encryption) outgoing emails that contain a certain keyword - [encrypt]. Although we had some success in testing, we found a few tests failing..

We are using the "subject includes any of these words" and found in the examples below

Working:
Hi, this is a test [encrypt] thanks
[encrypt] test

NOT working
This is a test[encrypt]let me know
Test[encrypt]

So it looks like either the lack of space at the END (or possibly beginning when in the middle) of [encrypt] is causing this to not be detected as a word. Is this expected behaviour on the rule as it's looking for a full word (space before / after) rather than a string of text "within" the subject?

Could anyone point me in the direction if there is another option, such as using 'pattern' (although is that regex?) Many thanks in advance, I have looked for some time through various forums/internet, but cannot see anything that is similar enough to help.

Well, thanks to a very learned colleague, we have an answer if helps anyone. Changing the rule to match pattern and using ((?i)\[ENCRYPT\]) works well! - Thank you
 
Thread starter Similar threads Forum Replies Date
S Send email via SMTP - use transport rules to add to senders inbox (then rule to move to sent items Exchange Server Administration 1
Brian Murphy Exchange Online Everything a Transport Rule should do and cannot Exchange Server Administration 1
L Transport rule - append disclaimer Exchange Server Administration 1
C Transport Rule Exchange Server Administration 4
E Prevent Looping Message using transport rule Exchange Server Administration 4
V Adding a Transport Rule Exchange Server Administration 3
J Hub Transport Rule Exchange Server Administration 6
A Transport Rule for Multiple Recipients Exchange Server Administration 3
B How do I remove multiple header fields in a transport rule? Exchange Server Administration 1
S Dynamic Signatures? ( Hub Transport Rule? ) Exchange Server Administration 16
P Transport Agent or Rules/Connectors Exchange Server Administration 1
G set exch 2010 server as the default hub transport Exchange Server Administration 6
S Hub transport ex2007 - monitoring inbound Exchange Server Administration 2
D How to manage and configure antispam updates for Hub Transport antispam filter agents at "filesystem Exchange Server Administration 1
S Edge Transport 3rd party mail filter before Exchange 2010 Exchange Server Administration 5
P Exchange transport overheads Exchange Server Administration 4
P Exchange 2010 - Enable Spam filtering on Hub Transport Server Exchange Server Administration 3
C ms transport suite Exchange Server Administration 2
X Internal mail flow between two hub transport servers same domain Exchange Server Administration 10
R Fax Transport Outlook 2010 (32-bit) Using Outlook 12
S Exchange 2010 - Mail Transport Exchange Server Administration 2
D Ms Exchange 2010 - Sp1 Upgrade at Prerequisites on Hub Transport Role Exchange Server Administration 8
T 451 4.4 dns query failed on exchange 2010 hub transport server Exchange Server Administration 1
L Transport Service Issues Message Queue keeps going offline slow mail delivery Exchange Server Administration 1
A Windows NLB for Exchange 2010 SP1 Hub Transport Servers Exchange Server Administration 7
T Prerequisites softwares for installing exchange 2010 edge transport server on windows 2008 R2 Exchange Server Administration 1
D Re: Hub Transport Role Install Fail error # 2147504141 Exchange Server Administration 0
P CAS-Transport-MBX on Single Server Exchange Server Administration 2
P Microsoft Exchange 2010 installation problems into an Exchange 2007 environment transport service wi Exchange Server Administration 4
J ex2010 edge transport - inbound from internet Exchange Server Administration 7
J Microsoft Exchange Transport service using 100% CPU Exchange Server Administration 4
M Exchange server 2010 installation failed with hub transport server role error Exchange Server Administration 5
K Edge transport and TMG best practice NLB Exchange Server Administration 1
J Transport rules do not seem to know what domains are inside my organization Exchange Server Administration 6
C Safelist Aggregation on Hub Transport Exchange Server Administration 2
R Exchange 2010 Edge Transport server not passing emails... Exchange Server Administration 7
Z Can I configure Safelist Aggregation Synchronization feature on Exchagne 2007 Hub Transport Server? Exchange Server Administration 1
J Autoforward from transport hub with changed sender address. Exchange Server Administration 9
T CAS/HUB Transport on VMWare Exchange Server Administration 5
S Hub Transport - Windows 2008 R2 Standard x64 - Limitations?? Exchange Server Administration 9
P Exchange 2010 Edge Transport Delays mail Exchange Server Administration 5
J Message Transport Size Limits Exchange Server Administration 5
E Send out specific Hub Transport based on email suffix? Exchange Server Administration 3
D Exchange 2010 Failing to install at Hub Transport Role Exchange Server Administration 11
H Setting up an Edge Transport Server - Exch 2010 Exchange Server Administration 11
A Monitoring Edge Transport in DMZ by SCOM 2007R2 Exchange Server Administration 2
J Exchange 2010 transport server error to exchange 2003 System Attendant mailbox Exchange Server Administration 2
S Can you WNLB Hub Transport ? Exchange Server Administration 7
B OWA Delivery Reports with an Edge Transport Server not useful Using Outlook 2
M 2010 SP1 Installation Fails on Hub Transport: Database is mandatory on UserMailbox after removing prior install of Exchange 2010 Exchange Server Administration 0
Similar threads


















































Top