Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / April 2006

Tip: Looking for answers? Try searching our database.

writing a macro to throw emails that contain pictures to trash

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
windows314 - 28 Apr 2006 11:19 GMT
i have been getting a lot of spam lately that is consistently of the same
form.  i keep on getting emails from different people with different email
addresses and different names.  the one thing that is common is that the body
of the email is a picture of text, not text itself.  just so it is
clearer...i am getting emails that contains pictures of text so when i reply
i can't just simply cut and paste a particular text because there is no
text...it is a picture.  i can't seem to use the rule wizard to throw these
types of emails straight to trash so i want to use vba.  how would i do this?

thanks!!  
Michael Bauer - 30 Apr 2006 09:12 GMT
Am Fri, 28 Apr 2006 03:19:01 -0700 schrieb windows314:

If I do understand you right, you can check in the ItemAdd event of the
Inbox each incoming mail: If the Body property is empty and the e-mail
contains an attachment then it´s propably what you´re looking for.

Signature

Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
 -- www.vbOffice.net --

> i have been getting a lot of spam lately that is consistently of the same
> form.  i keep on getting emails from different people with different email
[quoted text clipped - 6 lines]
>
> thanks!!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.