Outlook Macro to move / delete e-mails that contain certain text in an attachment

ZL1

New Member
Joined
Oct 23, 2012
Messages
28
Is there a macro that can scan over the context of an e-mail attachment on arrival and delete / move it to a certain folder if it contains it?

in a previous thread, i mentioned i receive about 200 emails a day with Text files attached (nothing in the body of the e-mail, only the attached text file). these text files are automated from domain controllers that spit out notifications when someone inputs a bad password, for 2003 servers error ID reads 675, but has several Failure codes. I only want the ones that state 0x18, but most come in as 0x19.. so since i can't change it in the automated process, i was hoping to catch it at the recipient end.

if i can run a macro that looks for 0x19 in the attachment and just deletes them, would save me about 180+/- e-mail views a day. (or in my prior thread, have the text file copied to the body of the e-mail and resent to me, i don't mind running rules to delete the duplicate ones if the text can show up in the body i can run an additional rule to look for 0x19 in the body).

Thanks,

Robert
 

Some videos you may like

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Watch MrExcel Video

Forum statistics

Threads
1,099,473
Messages
5,468,829
Members
406,612
Latest member
pedad

This Week's Hot Topics

Top