How can I delete all copies of a given companies logo graphic from all my emails at once?

ship69

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Hello

Is there any way that I can delete all copies of an attached image form all my emails?

Background
Some (idiot) companies insist on attaching an image of their company logo on all their emails. This makes it extremely hard to see which of their emails contain genuine attachment and which just have their company logo on. I would like to delete all such logos at once. Is this possible?

Thanks

J
 

ship69

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
PS
e.g. All emails from one of my clients contains a graphic called "image001.png" and another called "image002.png". How can I delete all instances for a graphic with that name from all my Outlook emails?
[I wasn't allowed to edit my original message, above]
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
you have two choices - edit the html t remove it or convert the messages to plain text.

You can start with one of these macros as a base and

Then use something like
With obj
.htmlbody = replace(.htmlbody, "image001.png","")
.save
End With


or use the macro that deleted images and look for just the two png files

something like this, although it may need edited a bit (I did not test it and am writing it as I watch tv so I'm not responsible for errors. :))
Code:
 ' Loop through attachments until attachment count = 0.
 While lngAttachmentCount > 0
if left(8,myAttachments.Item(1).FileName) ="image000" then 
 myAttachments(1).Delete
 lngAttachmentCount = myAttachments.count
 Wend
 

ship69

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Thanks but...

No, neither of your suggestions are acceptable.
A) Converting all my emails to plain text is not acceptable as I will lose formattting.
B) I am not interested in learning how to create and run macros. I just don't have time.

Is there no way to just locate all images called [whatever] and delete them.

Going fowards maybe I could destroy all images called [whatever] as they arrive, using a rule?
Come to think if it, is there any way to use Outlook Rules to delete all historic copies of image called [whatever]

J
 
Top