Forward Outlook Email by Filtering using Macro Rule

Status
Not open for further replies.

Alfie Panelo

Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server
Hello Diane,

Can you help me build a script to strip out the HTML formatting when a new message arrive?

Thank you,
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
You'd convert it to plain text format - i have a macro at Convert RTF Messages to Plain Text Format that converts RTF format, it can be used with html too, by changing this line:
If Item.BodyFormat = olFormatRichText Then

to
If Item.BodyFormat <> olFormatPlain Then
 

Alfie Panelo

Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server
Hello Diane,

Yes, it converted to plain text but the HTML Format still there where the Raw Email Body contains < on it which is conflict on my pattern.

Regards,
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Hello Diane,

Yes, it converted to plain text but the HTML Format still there where the Raw Email Body contains < on it which is conflict on my pattern.

Regards,
Yeah, i had tried that before and discovered it didn't work. :( <\s?\d should work though - html won't start with digits.
 

Alfie Panelo

Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server
Hey Diane,

Thanks for continuous assistance. However, it still doesn't work if the < is next after a letter (without space).

Regards,
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
B Forward every other email in Outlook 2013 Outlook VBA and Custom Forms 2
A Creating an outlook rule to forward an email with a specific message Using Outlook 1
A Outlook 2010 - Want to Have All Email Reply Forward as Rich Test Using Outlook 7
M In Outlook Calendar remove the buttons: 'Today' and '<' (Back a day) and '>' (Forward a day) that are below the Ribbon and above the calendar display. Using Outlook 0
M Outlook macro to automate search and forward process Outlook VBA and Custom Forms 6
N Going Forward: Using Outlook 2016 for RSS Feeds Using Outlook 2
N Outlook script to forward emails based on senders' address Outlook VBA and Custom Forms 2
J Outlook 2010: can't forward appointment on custom form Using Outlook 1
T outlook 2013 does not mark multiple forward messages as forward Using Outlook 2
S Outlook 2k/2k3 Reply or Forward: Signature image replaced by original sender Using Outlook 3
S Outlook 2003 Prefix on reply and forward Using Outlook 1
K How to auto truncate a message to forward with Outlook Rules Using Outlook 6
V major issue in outlook "Change in forward mail also change selected mail " Outlook VBA and Custom Forms 1
A why outlook change forward mail Outlook VBA and Custom Forms 2
H Forward E-mails at Certain Times in Outlook using VBA Outlook VBA and Custom Forms 1
T forward event in outlook with c# Outlook VBA and Custom Forms 1
G Forward email body to other mail list directly from Exchange server Exchange Server Administration 1
D auto forward base on email address in body email Outlook VBA and Custom Forms 0
Bering Forward selected email without the original email appended Outlook VBA and Custom Forms 0
C UDFs Reply vs Forward Outlook VBA and Custom Forms 3
J Automatically forward email and apply template Outlook VBA and Custom Forms 0
O Forward a email with modified body Automatically. Outlook VBA and Custom Forms 0
C How to rename subject line and forward the email Outlook VBA and Custom Forms 2
R Error when trying to forward current email item Outlook VBA and Custom Forms 7
G Missing forward/replied icons Using Outlook 2
M VBA to auto forward message with new subject and body text Outlook VBA and Custom Forms 8
B Automatically Forward Emails and Remove/Replace All or Part of Body Outlook VBA and Custom Forms 8
M Forward Appointment as BCC with VBScript Outlook VBA and Custom Forms 7
D Disable or hide "reply" and "reply to all" and "forward" in email from access vba Outlook VBA and Custom Forms 1
Sabastian Samuel HOW DO I FORWARD AN EMAIL WITH MACRO using an email that in the body of another email Outlook VBA and Custom Forms 3
C Don't forward duplicate Using Outlook 0
undercover_smother Automatically Forward All Sent Mail and Delete After Send Outlook VBA and Custom Forms 10
I change subject and forward without FW: Outlook VBA and Custom Forms 4
C VBA to Forward e-mails from certain address and between certain times Outlook VBA and Custom Forms 1
J Forward Action in Form Outlook VBA and Custom Forms 1
J Auto Forward - Include Attachment and change Subject depending on original sender Outlook VBA and Custom Forms 3
K add pdf to every reply or forward Outlook VBA and Custom Forms 1
Brostin Forward a mail to the address listed in the email text Outlook VBA and Custom Forms 1
J Forward Message after editing attachments and include edited attachments Using Outlook 5
R changing FW: on forward Outlook VBA and Custom Forms 3
Z Auto Forward Using Outlook 4
S Merge Emails with attachments with inbox rule to forward Using Outlook 5
B Auto Save of Attachments from Multiple Emails and forward attachments to user group Outlook VBA and Custom Forms 1
D Forward message to address from subject Outlook VBA and Custom Forms 1
D How to forward each email x minutes after it arrives in inbox and hasn't been moved or deleted? Using Outlook 1
W Macro to forward email Outlook VBA and Custom Forms 2
J How to change From then forward message Outlook VBA and Custom Forms 1
S Reply & Forward Date in original message incorrect Using Outlook 2
Diane Poremsky Forward Messages that were not Replied To Using Outlook 0
mikecox Forward email to another address; not with Rules Using Outlook 3

Similar threads

Top