How do I open up my attachments? i.e. jpg.?

Is there a way to programmatically remove all "image000.jpg" attachments from emails already received?

  • (using Outlook on windows/mac or mail.app on the mac) At work we are forced to add images to our email signatures. The problem (and the reason why I hate images in signatures) is most email clients will end up adding the images as attachments (especially when you have a multi-email thread going). I've seen some threads that had 20+ image000.jpg attachments in them because of this. Each image starts adding up against the email storage quota.

  • Answer:

    This script will delete any attachment with the filename "image000.jpg" in Outlook on Windows.  I don't use the Mac platform and cannot offer a solution for it.  To use this 1.  Start Outlook 2.  Press ALT+F11 to open the Visual Basic editor 3.  If not already expanded, expand Microsoft Office Outlook Objects 4.  If not already expanded, expand Modules 5.  Select an existing module (e.g. Module1) by double-clicking on it or create a new module by right-clicking Modules and selecting Insert > Module. 6.  Copy the code from the Code Snippet box and paste it into the right-hand pane of Outlook's VB Editor window 7.  Click the diskette icon on the toolbar to save the changes 8.  Close the VB Editor 9.  Create a rule 10. Set the rule to run for all messages 11. Set the rule's action to "run a script" and select this script as the one to run. 12. Set this rule as the first rule to run Sub StripImages(Item As Outlook.MailItem) Dim olkAtt As Outlook.Attachment, intCnt As Integer For intCnt = Item.Attachments.Count To 1 Step -1 Set olkAtt = Item.Attachments.Item(intCnt) If LCase(olkAtt.FILENAME) = "image000.jpg" Then olkAtt.Delete End If Next Item.Save Set olkAtt = NothingEnd Sub

David Lee at Quora Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.