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
Related Q & A:
- After downloading attachments from emails i am not able to open them. How do i correct this problem?Best solution by Yahoo! Answers
- Is there a way to find out if our "sent" emails have been opened by the recipient?Best solution by askleo.com
- Is there a way I can quickly remove a bloodshot?Best solution by livestrong.com
- Is there a way to recover deleted emails for the past month?Best solution by Yahoo! Answers
- How do I remove certain results from a Google search? Is there a way?
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.