Create a rule to only check new content in email - disregard original content

Status
Not open for further replies.

cweis

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
I'm trying to help a coworker manage responses, specifically "unsubscribe" requests from mass mailings.

The messages he sends are can-spam compliant (e.g. contain an unsubscribe link, address, phone, etc) and he would like to create a rule that looks for UNSUB or REMOVE only in the first few lines of the response (so that the unsubscribe link in the original message is not included).

Is this even possible?

Thanks,

Cathy
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Re: Create a rule to only check new content in email - disregard original cont

No, you can't use a rule to check just the first characters or lines of a message. A run a script rule might work but I don't have any samples that parse the message body looking for words. The basics of a run a script rule is here - Outlook's Rules and Alerts: Run a Script - Slipstick Systems.

if its always going to be the first words, you could look for the in the first characters using a rule a script rule:

Code:
Sub Checkbody(Item As Outlook.MailItem)
   Dim strID As String
   Dim objMail As Outlook.MailItem
 
   strID = Item.EntryID
   Set objMail = Application.Session.GetItemFromID(strID)
  If Left(objMail.Body, 6) = "remove" Or Left(objMail.Body, 5) = "unsub" Then
     objMail.Move Session.GetDefaultFolder(olFolderInbox).Folders("subfolder-name")
  End If 
 
Set objMail = Nothing 
 
End Sub
 

cweis

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Re: Create a rule to only check new content in email - disregard original cont

Ah, OK. Does the script get stored on the Exchange server or make the rule "client based"?

I'll play around to see what happens/never used a VPScript before - suppose I'll find out soon enough!

Thanks,

Cathy
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Re: Create a rule to only check new content in email - disregard original cont

it's client based. VBA requires outlook.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
P Can I create a Rule that sends me an email when I get a Task? Using Outlook 2
M How create a Rule to filter sender's email with more that one @ sign Using Outlook 1
K VBA BeforeItemMove event create rule to always move to its folder. Outlook VBA and Custom Forms 4
Jennifer Murphy Can I create a Rule with Or'd conditions? Using Outlook 1
Stilgar Relsik Create a rule to copy text from an email and paste it in the subject line. Using Outlook 1
T Create Rule For Secondary E-Mail Address In Outlook 2016 Using Outlook 4
B Macro To Create Rule To Export From Certain Folder Email Information in one workbook multiple sheets Outlook VBA and Custom Forms 0
Diane Poremsky Create a Task from an Email using a Rule Using Outlook 0
I Create custom Outlook 2013 Rule in Office 365 Outlook VBA and Custom Forms 5
S Create a Rule Using Outlook 0
S Create a Rule Using Outlook 0
I shared mailbox - can i create a rule (vba) for every user? Outlook VBA and Custom Forms 1
S How can I create a rule to move inbound emails from any of my contacts out of Inbox? Using Outlook 1
L How to create server-side rule? Using Outlook 4
J Outlook Rule - Create Link in Forwarding Message Outlook VBA and Custom Forms 2
A Creating rule to create week folder and transfer mail using alert Using Outlook 3
D Create Exchange Rule for everyone that highlights an email based on content of subject Exchange Server Administration 1
G Create rule based on image in email body Using Outlook 1
Jennifer Murphy How to create a rule for organization messages Using Outlook 2
anoble1 Can you create a rule once an email moves to the Vault Inbox to another place? Using Outlook 0
S Create rule to effect archive only Using Outlook 4
M Create Rule to BCC email? Using Outlook 2
J Create or Import a Outlook Rule through C# code. Outlook VBA and Custom Forms 2
D Create a macro in Outlook to run a rule Outlook VBA and Custom Forms 32
N How to create hidden rule in outlook 2007 Outlook VBA and Custom Forms 3
Q How do I create a custom action for a rule? (Save as "Nfy.MSG") Outlook VBA and Custom Forms 1
C Create Meeting With Custom Form Outlook VBA and Custom Forms 3
D Create advanced search (email) via VBA with LONG QUERY (>1024 char) Outlook VBA and Custom Forms 2
G Create ordinal numbers for birthday Outlook VBA and Custom Forms 2
O Outlook 365 - How to create / copy a new contact from an existing one? Using Outlook 3
D Create new email from the received Email Body with attachment Outlook VBA and Custom Forms 10
A How to create fixed signatures for aliases that process through GMAIL? Outlook VBA and Custom Forms 0
B Can I create a local PST file for SPAM on a drive that is usually disconnected? Using Outlook 3
Chiba Create an appointment for all the members Outlook VBA and Custom Forms 1
S Create a clickable custom column field Outlook VBA and Custom Forms 0
O Create a custom contact form - questions before messing things up... Outlook VBA and Custom Forms 4
C Can't create Outlook data file Outlook Wishlist 0
L automaticaly create a teams meeting with a sync Using Outlook 0
D Can Exchange Admin Center create a pst for users email/contacts/calendar? Exchange Server Administration 0
S Create A Search Folder That Looks For Message Class? Outlook VBA and Custom Forms 0
F How to create phone number as links in notes of Contacts Using Outlook 2
Nessa Can't create new appointment Using Outlook 1
A Create date folder and move messages daily Outlook VBA and Custom Forms 1
C Create new Message with shared contacts & BCC'ing recipients Outlook VBA and Custom Forms 0
O Multiple email accounts - hesitate to create a new profile Using Outlook 3
G Can't create Folder Groups in Outlook 2013 Using Outlook 0
N Outlook rules don't create a copy for bcc'ed emails Using Outlook 3
F Delete/create/reset Exchange mailbox on Outlook.com Using Outlook.com accounts in Outlook 3
R Can not create folder to store specific emails in in Outlook for Mac Using Outlook 1
W Create Search Folder excluding Specific Email Addresses Using Outlook 5

Similar threads

Top