creating a rule in Outlook based on a file's properties - help!

  • Thread starter Thread starter ruth
  • Start date Start date
R

ruth

can someone please help me? I'm trying to create a rule
in Outlook 2002 to permanently delete an incoming e-mail
when it arrives.I'm struggling, as it's a picture with no
text coming in from hundreds of different sources. (same
picture all the time!)

If a person sends you a PICTURE (jpg) ONLY - with NO
TEXT, and you can see the properties of that picture, is
there any way in Outlook that you can create a Rule to
delete any incoming e-mail with a PICTURE WITH THOSE
PROPERTIES ????????



Help!!!!!!

Ruth
 
Hello Ruth

OK this is shooting from the hip. I am sure there are many better
people to answer you, but what the heck I'll post my two cents as
well.


There are a lot of rules that you can use, mainly I am thinking of the
SIZE or WITH SPECIFIC PROPERTIES rules. But these rules are going to
function on all messages, so if a message happen to be of the size
that you are trapping, then it will be affected. So I suggest using
VBA

With VBA I think that you do a lot, and have more control.

1) The messages comes by.
2) VBA runs after all messages have arrived
3) VBA looks for an attachment with a .jpg extension AND body is
empty.

If conditions are met, delete that message, otherwise this may not be
the one message to delete.

I will post some code for you later.

Wassim
 
Back
Top