PC Review


Reply
Thread Tools Rate Thread

Code to deleted all emails from pre-defined senders

 
 
New Member
Join Date: Jun 2011
Posts: 3
 
      30th Jun 2011
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
 
Reply With Quote
 
 
 
 
Yorkshire Cruncher
nivrip's Avatar
Join Date: Mar 2007
Location: North Yorkshire
Posts: 3,802
 
      30th Jun 2011
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.

 
System Spec

Colossus 1943 Version 1.0
 
Reply With Quote
 
New Member
Join Date: Jun 2011
Posts: 3
 
      30th Jun 2011
I am talking about CURRENT mail in my inbox I have over 5000 messages!
 
Reply With Quote
 
Yorkshire Cruncher
nivrip's Avatar
Join Date: Mar 2007
Location: North Yorkshire
Posts: 3,802
 
      30th Jun 2011
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.

 
System Spec

Colossus 1943 Version 1.0
 
Reply With Quote
 
New Member
Join Date: Jun 2011
Posts: 3
 
      30th Jun 2011
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! :-)
 
Reply With Quote
 
Yorkshire Cruncher
nivrip's Avatar
Join Date: Mar 2007
Location: North Yorkshire
Posts: 3,802
 
      30th Jun 2011
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.

 
System Spec

Colossus 1943 Version 1.0
 
Reply With Quote
 
sugar 'n spikes
floppybootstomp's Avatar
Join Date: Mar 2002
Location: Greenwich
Posts: 16,361
 
      30th Jun 2011
Use mailwasher, free for one e-mail account, automatically bounces back unwanted spam.

 
Don Van Vliet 1941 - 2010. And the acid gold bar swirled up and down, up and down.
 
Reply With Quote
 
Master of Logic
Silverhazesurfer's Avatar
Join Date: Oct 2008
Posts: 954
 
      30th Jun 2011
Outlook has a rules wizard that will allow you to filter, move or remove emails of a specific definition.

http://officetwoten.blogspot.com/200...010-rules.html
http://www.byteblocks.com/post/2009/...look-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.

 
-Surfer

I'm not a rocket surgeon, but I did stay in a Holiday Inn Express last night.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application defined or object defined error - Not Caused by Code JeffTO Microsoft Excel Programming 5 20th Dec 2009 11:31 AM
Move Deleted Emails to Personal Folder Deleted Emails =?Utf-8?B?UGVyc2lhbiBQcmluY2Vzcw==?= Microsoft Outlook Discussion 1 23rd Jun 2007 11:28 PM
Application-Defined or Object-Defined Error on simple code Fid Microsoft Excel Programming 1 21st Jul 2005 08:30 PM
Safe Senders Going to Deleted Items =?Utf-8?B?S0dsZW5uQw==?= Microsoft Outlook Discussion 1 14th Mar 2005 11:35 PM
Re: Application-Defined or Object-Defined Error on simple code brentfid@hotmail.com Microsoft Excel Programming 0 22nd Feb 2005 09:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:57 PM.