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
 
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
 
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
 
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
B Modify VBA to create a RULE to block multiple messages Outlook VBA and Custom Forms 0
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
S Create Outlook Task from Template and append Body with Email Body Outlook VBA and Custom Forms 4
J Want to create a button on the nav bar (module add-in) to run code Outlook VBA and Custom Forms 2
B How to create a button that sorts and selects the most recent message with ONE click Using Outlook 2
J PSA: How to create custom keyboard shortcut for "Paste Unformatted Text" in Outlook on Windows Outlook VBA and Custom Forms 1
W Create a Quick Step or VBA to SAVE AS PDF in G:|Data|Client File Outlook VBA and Custom Forms 1
Wotme create email only data file Using Outlook 1
S Outlook 365 Help me create a Macro to make some received emails into tasks? Outlook VBA and Custom Forms 1
J How to create a drop down user defined field that will appear on an inbox view Outlook VBA and Custom Forms 8
Commodore Any way to create "from-only" account on Outlook 2021? Using Outlook 1
L Capture email addresses and create a comma separated list Outlook VBA and Custom Forms 5
N Can't create NEW GROUP and add/remove a member from existing Group in Outlook Using Outlook 1
NVDon Create new Move To Folder list Outlook VBA and Custom Forms 0
C Create Meeting With Custom Form Outlook VBA and Custom Forms 2
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 5
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
L automaticaly create a teams meeting with a sync Using Outlook 0

Similar threads

Back
Top