Outlook Rules check for new line character

Status
Not open for further replies.

minogully

Member
Hello,




I've been searching the net for the answer to this problem, with nothing to show for it.




I'm trying to set up a rule in Outlook that will run on the server and will search in the body of the email for a string that has a newline character in the middle of it.




So, basically, what's the escape sequence used to indicate a new line?






Here's my situation, just in case there's a different way of solving it...




I need to separate some automated emails into different folders based on the contents of the emails. The part that will determine where the email should go is always found on the line after a particular string. So, let's say I'm looking for the line:


"destination:"


and on the next line, I could have one of the following:


"dest1", "dest2", or "dest3"




But the problem is, that "dest1", "dest2", and "dest3" all may be written throughout the email, so I really need to focus on the one that's written after the line "destination:".




Currently, I've got a rule working that runs a macro that does this processing, which works fine, but my issue with it this solution is that due to the fact that I'm running a script it runs only on the client's machine, not on the server.




Can I get a rule, or multiple rules working together that do what I need that will run on the server?




Thanks.
 
To answer the basic question, you'd be looking for vbCrLf. But... AFAIK, server side rules won't work because you'd need to use a script to find the line breaks and that is client side only.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
J Outlook Rules VBA Run a Script - Multiple Rules Outlook VBA and Custom Forms 0
N Outlook 2021 'Run Script" Rules? Outlook VBA and Custom Forms 4
A Apply Selected Emails to outlook rules and Run Rules Using Outlook 5
Wayne Outlook locks up when opening "Manage Rules & Alerts" Using Outlook 7
T "Words In Recipient's Address" Rule Causes Outlook To Stop Processing Rules Using Outlook 3
N Outlook rules don't create a copy for bcc'ed emails Using Outlook 3
K Outlook Rules: Move a Copy Using Outlook 4
soadfan Outlook rules look up display name only Using Outlook 4
Justo Horrillo Issue with rules in Outlook 2010 Using Outlook 4
J Outlook Rules - Changing auto-submit address in multiple rules, according to rule name Outlook VBA and Custom Forms 0
E Outlook 2010 need help with rules Using Outlook 0
D Outlook Rules Using Outlook 1
Gunny NFOhiway Outlook PST file and Rules Using Outlook 1
M Outlook 2016 Rules Not Working Automatically Using Outlook 5
oliv- How to Run a Script IN AN ADDIN with Outlook's Rules and Alerts Outlook VBA and Custom Forms 2
Q Outlook 2016\365 export specific rules to import in another system Exchange Server Administration 1
A outlook 2007 how to chcek all rules ? Outlook VBA and Custom Forms 2
J Outlook Rules not show Master Category List Using Outlook.com accounts in Outlook 4
R Outlook rules Using Outlook 3
M Outlook 2007 IMAP Account Rules Issues Using Outlook 3
D Outlook Rules - How to use a variable in the subject condition Outlook VBA and Custom Forms 9
A Setting RULES with more than one condition in MS OUTLOOK Using Outlook 6
J Outlook rules and alternatives Using Outlook 2
Rupert Dragwater How to delete old rules and create new in Outlook 2013 Using Outlook 12
H Using Outlook Rules to search for NewLines in message body Using Outlook 1
R Outlook - alternatives to Rules / Junk? Using Outlook 5
R Outlook 2013 - IMAP & Rules Broken Using Outlook 1
D Trying to repair Outlook rules Using Outlook 5
J Outlook 2007 Rules & VBA: How to run a script on a report message (ReportItem) Using Outlook 14
V Importing Rules in Outlook 2013 Using Outlook 2
T Adding text to forwarding rules in Outlook 2010 Using Outlook 1
T Adding tex to forwarding rules in Outlook 2010 Exchange Server Administration 1
D Outlook 2010 Rules: fwd meeting invitation results in winmail.dat not .ics Using Outlook 4
M Outlook 2010 IMAP rules occasionaly stop working Using Outlook 4
kburrows Smartphones, Outlook and Rules Using Outlook 0
W Fwd Outlook incomming messages to usb port after Rules and alerts applied Using Outlook 0
P Outlook 2013 rules -- not working reliably -- moving messages to wrong boxes Using Outlook 0
J Outlook 2013 - Rules and Alerts for POP3/IMAP Accounts Using Outlook 1
S Outlook 2010: Message Rules come back next time I restart Outlook Using Outlook 0
D Unable to transfer rules from one Outlook computer to another Using Outlook 5
R Outlook 2013 Rules not working Using Outlook 1
S Outlook 2013 - All rules simply delete the email Using Outlook 1
M Rules in Outlook 2013 Exchange Server Administration 9
K Outlook Cached Mode - can't create rules to move email to another mailbox Using Outlook 2
J Outlook rules help Using Outlook 1
D Outlook Rules Using Outlook 1
J Outlook - rules and Alerts Using Outlook 1
V Outlook 2010 non working rules Using Outlook 1
M Rules & Alerts not appearing in the File Tab (outlook 2010) Using Outlook 1
S Outlook 2010, need script for rules & Warnings Using Outlook 3

Similar threads

Back
Top