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

Status
Not open for further replies.

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
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
W Recurrence: delete older occurrences / change earliest start time Outlook VBA and Custom Forms 0
J Moved many emails to Outlook external folder, need to delete on Gmail server Using Outlook 13
A Attachments.Delete Outlook VBA and Custom Forms 3
R Help Revising VBA macro to delete email over different time span Outlook VBA and Custom Forms 0
R Expand VBA Permanent Delete Code Outlook VBA and Custom Forms 6
M Delete headers in Inline reply Outlook VBA and Custom Forms 5
N VBA to delete duplicates by message-id on common pst for 2 or more emails Outlook VBA and Custom Forms 0
9 Outlook 2016 How to save an Outlook attachment to a specific folder then delete the email it came from? Using Outlook 1
D after delete mail, open the next one Outlook VBA and Custom Forms 0
O Delete duplicate emails - subscription notifications Using Outlook 5
F Delete/create/reset Exchange mailbox on Outlook.com Using Outlook.com accounts in Outlook 3
L Email Read and Delete Outlook VBA and Custom Forms 4
H Delete Calendar Entries in Using Outlook 2
D Delete Emails from Senders in Shared Mailbox Outlook VBA and Custom Forms 1
R How to delete Facebook Contacts folder in Outlook 365 Using Outlook 7
R VBA Code to permanently delete selected email Outlook VBA and Custom Forms 10
JoeG Appointment Delete/Change Recurrence Outlook VBA and Custom Forms 0
C Outlook 2016 cannot delete, email showing in root Exchange Server Administration 5
C How to replace or delete first instance of sentence in mail body? Outlook VBA and Custom Forms 1
Z Can't delete IMAP folder Using Outlook 2
J Delete old emails Exchange Server Administration 1
undercover_smother Automatically Forward All Sent Mail and Delete After Send Outlook VBA and Custom Forms 10
T Delete Emails from search results Outlook VBA and Custom Forms 1
I Outlook 2013 How do I delete a Calendar? Using Outlook.com accounts in Outlook 1
N How to delete default folder "Contacts" (olFolderContacts) in a .pst file Using Outlook 8
O How to delete posts New Slipstick.com Articles 1
B How to 'really' delete IMAP emails? Using Outlook 6
H Search and delete part of a link inside HTML body message Outlook VBA and Custom Forms 2
B Delete/replace old files and save new attachments Using Outlook 1
D Delete selected text from incoming emails Outlook VBA and Custom Forms 25
mikolajek Random message selected after hard delete Using Outlook 4
Jeanne Goodman Delete Calendar Item Bypassing Deleted Items folder Outlook VBA and Custom Forms 2
C Delete Subject-Add Organizer to all Reservations in Default Calendar. Using Outlook 0
P Delete mail macro Outlook VBA and Custom Forms 6
B Outlook 2016: Can't delete default calendar but I don't use it Using Outlook 7
O How to delete duplicate RSS messages? Using Outlook 6
J "This item has been changed still want to delete it" message Using Outlook 3
M Can't Delete iCloud Calendar Notifications From Outlook 2016 Using Outlook 0
P Delete Icon Using Outlook 2
makinmyway Bulk Delete Contacts in iOS Outlook App Using Outlook 4
Diane Poremsky Delete an Outlook Group New Slipstick.com Articles 0
M Cannot Delete Emails from IMAP inbox Using Outlook 4
K Deleted calendar and contact items not going to delete folder Using Outlook 1
K Outlook 2013 Deleted calendar and contact items not going to delete folder Exchange Server Administration 1
J Adding Reply & Delete to main toolbar? Using Outlook 0
Reji Rajan Delete Data Outlook VBA and Custom Forms 1
K check for sender, follow to my personal adress and delete the sent folder. Outlook VBA and Custom Forms 1
L Outlook 2007 Delete Email Addresses Using Outlook 19
D Delete previous email based on arrival of new email Outlook VBA and Custom Forms 1
V Disabling all delete notifications Using Outlook 0
Similar threads


















































Top