Automatic Delete EMails with no message content

Is there a way or rule in Outlook Express where you can automatically send an email with an empty message box to the delete bin as this seems to be on the increase getting this type of rubbish.

Many thanks
LVL 1
PeterWhittsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

war1Commented:
Greetings, PeterWhitts !

Outlook Express does not have a specific option to delete blank body.  You can try setting a rule to delete the email if the body is " ".

Mailwasher program has an option to delect blank message.  This spam blocker is free.
http://www.mailwasher.net/

Best wishes!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
alifaikCommented:
Hi Peter
you might write a macro, that checks on receiving an email(after getting it) whether the body is empty or not and then forward it to the "deleted"
PeterWhittsAuthor Commented:
alifaik

Do you have suggestions for the code and how do I implemnt it in Outlook Express
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

alifaikCommented:
Hi here is the code :



Private Sub Application_NewMail()

    Dim myExplorers As Outlook.Explorers
    Dim myExplorer As Outlook.Explorer
    Dim myFolder As Outlook.MAPIFolder
    Dim myMailItem As Outlook.MailItem
    Dim i As Integer
   
    Set myExplorers = ThisOutlookSession.Explorers
    Set myFolder = ThisOutlookSession.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)
      For Each myMailItem In myFolder.Items
       
        If Not myMailItem Is Nothing Then
            If myMailItem.Body = "" Then
                myMailItem.Delete
            End If
        End If
    Next myMailItem
   
 
End Sub


-----------------------------------
to paste it in the VBE:
1) ALT + F11 to open the VBA Editor
2)in the left collapse the "Project1(VbaProject.OTM)"
3)the collapse the folder "Microsoft office Outlool Objects"
4)choose or double click the "ThisOutlookSession"
5)paste the code into the Pane to the right, then save and close the VBE , the code will work automatically each time you receive a new email in the inbox, furthermore it will check for previous emails with empty body the first time it works

Enjoy!!

PeterWhittsAuthor Commented:
ALT + F11 to open the VBA Editor  does not seem to work in Outlook Express and I do not want to use Outlook.
alifaikCommented:
you have stated in your question outlook express  "s there a way or rule in Outlook Express where..."
but this code is not for outlook express, it is for "Microsoft Outlook" the one that comes with office, there is difference between the two, the former is just has some limited functionality the latter has calenders ,tasks ....

so to open the VBE open "Microsoft Outlook" then choose tools, then Macros then Visual Basic editor then
2)in the left collapse the "Project1(VbaProject.OTM)"
3)the collapse the folder "Microsoft office Outlool Objects"
4)choose or double click the "ThisOutlookSession"
5)paste the code into the Pane to the right, then save and close the VBE , the code will work automatically each time you receive a new email in the inbox, furthermore it will check for previous emails with empty body the first time it works


greets
alifaikCommented:
sorry I misunderstood, u meant u didnt want to use Microsoft outlook. I dont know a way in outlook express, it does not support even macros.

I hope someone else knows another way rather than installing the above mentioned program.
PeterWhittsAuthor Commented:
>>You can try setting a rule to delete the email if the body is " ". << This does not seem to work but I will try the MailWasher.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Outlook

From novice to tech pro — start learning today.