Code to deleted all emails from pre-defined senders

Joined
Jun 30, 2011
Messages
3
Reaction score
0
Dear all

Has someone got some code that when run will go through the inbox and delete all emails from certain senders?

Many thanks in advance.

Jim
 

nivrip

Yorkshire Cruncher
Joined
Mar 21, 2007
Messages
10,906
Reaction score
2,139
I use Gmail and I set up filters to eliminate specific email addresses I don't want to receive.

Before this I used Mailwasher, a free download, which did a similar job and can be used on any email system.
 

nivrip

Yorkshire Cruncher
Joined
Mar 21, 2007
Messages
10,906
Reaction score
2,139
Ahhh....... You didn't actually say that in your first post.


In that case, I don't know the answer.


It would also be handy to know which system you use as there may be someone who uses the same system and does know the answer.
 
Joined
Jun 30, 2011
Messages
3
Reaction score
0
Outlook 2010 - sorry thought I had implied it as I said I wanted it to go through the inbox.

Thanks for your comments though it is appreciated! :)
 

nivrip

Yorkshire Cruncher
Joined
Mar 21, 2007
Messages
10,906
Reaction score
2,139
Just remembered the short spell I used Windows Mail there was a way to do it. Not sure if Outlook is the same though.

In Tools>Message Rules you can create a New Rule by entering specific names of senders and instructing the Rule to delete all emails from that sender. It will even work retrospectively and delete all emails from that sender that are currently in your Inbox.

Outlook and Windows Mail must surely have some similarities.
 

floppybootstomp

sugar 'n spikes
Moderator
Joined
Mar 5, 2002
Messages
20,281
Reaction score
1,794
Use mailwasher, free for one e-mail account, automatically bounces back unwanted spam.
 

Silverhazesurfer

Master of Logic
Joined
Oct 3, 2008
Messages
1,068
Reaction score
42
Outlook has a rules wizard that will allow you to filter, move or remove emails of a specific definition.

http://officetwoten.blogspot.com/2009/07/outlook-2010-rules.html
http://www.byteblocks.com/post/2009/12/04/Creating-Email-Rules-In-Outlook-2010.aspx

This should get you an idea as to what to do but in the end, you will need to create a custom rule. Start with a blank rule and add the parameters as you go using the wizard. Once you do that, run your rules and the system should start to filter as desired. I would recommend a move to a folder first to separate your mail before you delete. In the end, it is your choice.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top