A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Automating dealing with junk mail and spam



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 3rd 07, 11:26 AM posted to microsoft.public.outlook.program_vba
Silent Ken
external usenet poster
 
Posts: 3
Default Automating dealing with junk mail and spam

I am using Outlook 2003.

Firstly, I regularly program VBA macros in Excel. Like many users of VBA, I
originally learned to program Excel macros, from a start point of some
familiarity with the Basic language and with VB, by recording macros and then
reading the results. It is thus a little disappointing that Outlook does not
include the facility to record macros. This is a feature that should be added
sooner rather than later.

I would like to automate dealing with junk mail and spam mail. Reading the
Outlook VBA help I can find no mention of how to access the Blocked Senders
list within Outlook VBA. It does not appear to be listed as a collection in
the language reference. I would like to be able to retrieve items from the
list, edit items and add new ones, all within a VBA macro.

My basic idea is that I can auto detect mail in the spam folder, add the
sender to the blocked senders list, edit the entry to leave just the domain
name so that all mail from that domain is blocked and then auto delete the
mail. Similarly I can auto delete mail in the junk mail folder. Finally, I
can similarly treat junk and spam that makes it into my inbox by simply right
clicking on the mail and selecting an item from the context pop-up menu.

Is any of this possible? Can anyone help?

--

Best regards

Ken
  #2  
Old January 3rd 07, 02:44 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Automating dealing with junk mail and spam

None of this is possible. The Blocked Senders list is not exposed in the Outlook object model. That's why you find no reference to it. It is stored as a hidden item in the user's default information store, in an undocumented binary format.

The Office programs that have macro recorders are in the minority. It's been years since any new recorder was added, probably because applications are much more complex than the early versions of Excel, etc. I don't expect macro recorders ever to be added to Office programs that don't already have them.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Silent Ken" wrote in message ...
I am using Outlook 2003.

Firstly, I regularly program VBA macros in Excel. Like many users of VBA, I
originally learned to program Excel macros, from a start point of some
familiarity with the Basic language and with VB, by recording macros and then
reading the results. It is thus a little disappointing that Outlook does not
include the facility to record macros. This is a feature that should be added
sooner rather than later.

I would like to automate dealing with junk mail and spam mail. Reading the
Outlook VBA help I can find no mention of how to access the Blocked Senders
list within Outlook VBA. It does not appear to be listed as a collection in
the language reference. I would like to be able to retrieve items from the
list, edit items and add new ones, all within a VBA macro.

My basic idea is that I can auto detect mail in the spam folder, add the
sender to the blocked senders list, edit the entry to leave just the domain
name so that all mail from that domain is blocked and then auto delete the
mail. Similarly I can auto delete mail in the junk mail folder. Finally, I
can similarly treat junk and spam that makes it into my inbox by simply right
clicking on the mail and selecting an item from the context pop-up menu.

Is any of this possible? Can anyone help?

--

Best regards

Ken

  #3  
Old January 3rd 07, 03:51 PM posted to microsoft.public.outlook.program_vba
Silent Ken
external usenet poster
 
Posts: 3
Default Automating dealing with junk mail and spam


Thankyou Sue. Needless to say, your answer is disappointing to me. But there
is no doubting that it is the full and definitive answer. At least I know not
to waste any more time trying to achieve it. I shall have to stick to the
laborious method.

A pox on all spammers and junk mail distributors!


--

Best regards

Ken


"Sue Mosher [MVP-Outlook]" wrote:

None of this is possible. The Blocked Senders list is not exposed in the Outlook object model. That's why you find no reference to it. It is stored as a hidden item in the user's default information store, in an undocumented binary format.

The Office programs that have macro recorders are in the minority. It's been years since any new recorder was added, probably because applications are much more complex than the early versions of Excel, etc. I don't expect macro recorders ever to be added to Office programs that don't already have them.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Silent Ken" wrote in message ...
I am using Outlook 2003.

Firstly, I regularly program VBA macros in Excel. Like many users of VBA, I
originally learned to program Excel macros, from a start point of some
familiarity with the Basic language and with VB, by recording macros and then
reading the results. It is thus a little disappointing that Outlook does not
include the facility to record macros. This is a feature that should be added
sooner rather than later.

I would like to automate dealing with junk mail and spam mail. Reading the
Outlook VBA help I can find no mention of how to access the Blocked Senders
list within Outlook VBA. It does not appear to be listed as a collection in
the language reference. I would like to be able to retrieve items from the
list, edit items and add new ones, all within a VBA macro.

My basic idea is that I can auto detect mail in the spam folder, add the
sender to the blocked senders list, edit the entry to leave just the domain
name so that all mail from that domain is blocked and then auto delete the
mail. Similarly I can auto delete mail in the junk mail folder. Finally, I
can similarly treat junk and spam that makes it into my inbox by simply right
clicking on the mail and selecting an item from the context pop-up menu.

Is any of this possible? Can anyone help?

--

Best regards

Ken


  #4  
Old January 3rd 07, 04:02 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Automating dealing with junk mail and spam

I find dealing with the blocked senders list to be a total waste of time, since spammer addresses and domains change by the minute, and certainly not worth the extra effort beyond simply deleting the messages. If the Outlook junk filter isn't doing the job you want, maybe it's time to try another tool, such as SpamBayes?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Silent Ken" wrote in message ...

Thankyou Sue. Needless to say, your answer is disappointing to me. But there
is no doubting that it is the full and definitive answer. At least I know not
to waste any more time trying to achieve it. I shall have to stick to the
laborious method.

A pox on all spammers and junk mail distributors!

"Sue Mosher [MVP-Outlook]" wrote:

None of this is possible. The Blocked Senders list is not exposed in the Outlook object model. That's why you find no reference to it. It is stored as a hidden item in the user's default information store, in an undocumented binary format.

The Office programs that have macro recorders are in the minority. It's been years since any new recorder was added, probably because applications are much more complex than the early versions of Excel, etc. I don't expect macro recorders ever to be added to Office programs that don't already have them.



"Silent Ken" wrote in message ...
I am using Outlook 2003.

Firstly, I regularly program VBA macros in Excel. Like many users of VBA, I
originally learned to program Excel macros, from a start point of some
familiarity with the Basic language and with VB, by recording macros and then
reading the results. It is thus a little disappointing that Outlook does not
include the facility to record macros. This is a feature that should be added
sooner rather than later.

I would like to automate dealing with junk mail and spam mail. Reading the
Outlook VBA help I can find no mention of how to access the Blocked Senders
list within Outlook VBA. It does not appear to be listed as a collection in
the language reference. I would like to be able to retrieve items from the
list, edit items and add new ones, all within a VBA macro.

My basic idea is that I can auto detect mail in the spam folder, add the
sender to the blocked senders list, edit the entry to leave just the domain
name so that all mail from that domain is blocked and then auto delete the
mail. Similarly I can auto delete mail in the junk mail folder. Finally, I
can similarly treat junk and spam that makes it into my inbox by simply right
clicking on the mail and selecting an item from the context pop-up menu.

Is any of this possible? Can anyone help?

--

Best regards

Ken


  #5  
Old January 4th 07, 10:06 AM posted to microsoft.public.outlook.program_vba
Silent Ken
external usenet poster
 
Posts: 3
Default Automating dealing with junk mail and spam

Thanks again Sue. I shall investigate the tool you mention, but I must say
that I find the blocked senders list more effective than you suggest. I find
that it tends to come in waves. After a period of getting e-mails in my spam
folder and making sure I add each domain name to the blocked senders list, I
then get a significant period when all junk is correctly filtered direct into
the junk mail folder from where I can delete it quickly and easily. (I'm not
sure why Outlook doesn't provide the option to set up to just automatically
delete junk e-mail - and I mean delete all together, not just move in to the
delete folder. I realise some might not want to exercise this option, but I
would. I have never yet experienced an occasion of getting a genuine e-mail
in my spam or junk mail folder.) After a period of time, I then get a new
phase of e-mails appearing in the spam folder, but my blocked senders list
grows and I soon get back to the correct filtering of junk mail. I should
point out that I maintain my blocked senders list by manually editing all
entries down to just the at symbol and the domain name, so that all e-mails
from that domain are filtered. Of course, what I was trying to achieve was
making the whole business of dealing with junk mail and spam utterly
transparent to me. It's a shame that isn't possible.


--

Best regards

Ken


"Sue Mosher [MVP-Outlook]" wrote:

I find dealing with the blocked senders list to be a total waste of time, since spammer addresses and domains change by the minute, and certainly not worth the extra effort beyond simply deleting the messages. If the Outlook junk filter isn't doing the job you want, maybe it's time to try another tool, such as SpamBayes?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Silent Ken" wrote in message ...

Thankyou Sue. Needless to say, your answer is disappointing to me. But there
is no doubting that it is the full and definitive answer. At least I know not
to waste any more time trying to achieve it. I shall have to stick to the
laborious method.

A pox on all spammers and junk mail distributors!

"Sue Mosher [MVP-Outlook]" wrote:

None of this is possible. The Blocked Senders list is not exposed in the Outlook object model. That's why you find no reference to it. It is stored as a hidden item in the user's default information store, in an undocumented binary format.

The Office programs that have macro recorders are in the minority. It's been years since any new recorder was added, probably because applications are much more complex than the early versions of Excel, etc. I don't expect macro recorders ever to be added to Office programs that don't already have them.



"Silent Ken" wrote in message ...
I am using Outlook 2003.

Firstly, I regularly program VBA macros in Excel. Like many users of VBA, I
originally learned to program Excel macros, from a start point of some
familiarity with the Basic language and with VB, by recording macros and then
reading the results. It is thus a little disappointing that Outlook does not
include the facility to record macros. This is a feature that should be added
sooner rather than later.

I would like to automate dealing with junk mail and spam mail. Reading the
Outlook VBA help I can find no mention of how to access the Blocked Senders
list within Outlook VBA. It does not appear to be listed as a collection in
the language reference. I would like to be able to retrieve items from the
list, edit items and add new ones, all within a VBA macro.

My basic idea is that I can auto detect mail in the spam folder, add the
sender to the blocked senders list, edit the entry to leave just the domain
name so that all mail from that domain is blocked and then auto delete the
mail. Similarly I can auto delete mail in the junk mail folder. Finally, I
can similarly treat junk and spam that makes it into my inbox by simply right
clicking on the mail and selecting an item from the context pop-up menu.

Is any of this possible? Can anyone help?

--

Best regards

Ken


  #6  
Old January 10th 07, 12:31 PM posted to microsoft.public.outlook.program_vba
mawasse
external usenet poster
 
Posts: 1
Default Automating dealing with junk mail and spam

Dear Sue,

we have a Spam Filter that moves all incoming spam to a special
email account. A colleague should read all this - if there is
a "not spam" email and forward it to the right receipient.
We have more than 2000 spam emails each day...

So, my colleague moves spam to a subfolder "definitely spam".
I run a AutoIt makro to add the latest addresses to the
blocked senders of the Outlook 2003 Junk filter.
This reduces the SPAM in the INBOX 4 times!

But the handling with a external makro is difficult.
I'm also very interessted in a solution to handle
Junk with Outlook Macros.
Maybe you find a solution? Could you publish, if you find,
under http://www.outlookcode.com - Samples ?

Your Outlook Jumpstart book is wonderfull.

Greetings
Markus Wasse

"Silent Ken" wrote:

I am using Outlook 2003.

Firstly, I regularly program VBA macros in Excel. Like many users of VBA, I
originally learned to program Excel macros, from a start point of some
familiarity with the Basic language and with VB, by recording macros and then
reading the results. It is thus a little disappointing that Outlook does not
include the facility to record macros. This is a feature that should be added
sooner rather than later.

I would like to automate dealing with junk mail and spam mail. Reading the
Outlook VBA help I can find no mention of how to access the Blocked Senders
list within Outlook VBA. It does not appear to be listed as a collection in
the language reference. I would like to be able to retrieve items from the
list, edit items and add new ones, all within a VBA macro.

My basic idea is that I can auto detect mail in the spam folder, add the
sender to the blocked senders list, edit the entry to leave just the domain
name so that all mail from that domain is blocked and then auto delete the
mail. Similarly I can auto delete mail in the junk mail folder. Finally, I
can similarly treat junk and spam that makes it into my inbox by simply right
clicking on the mail and selecting an item from the context pop-up menu.

Is any of this possible? Can anyone help?

--

Best regards

Ken

  #7  
Old January 12th 07, 01:44 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Automating dealing with junk mail and spam

But the handling with a external makro is difficult.

I don't know what you mean by an external macro. Or what's difficult.

I'm also very interessted in a solution to handle
Junk with Outlook Macros.


Handle in what way?

Glad you like the book!

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"mawasse" wrote in message ...
Dear Sue,

we have a Spam Filter that moves all incoming spam to a special
email account. A colleague should read all this - if there is
a "not spam" email and forward it to the right receipient.
We have more than 2000 spam emails each day...

So, my colleague moves spam to a subfolder "definitely spam".
I run a AutoIt makro to add the latest addresses to the
blocked senders of the Outlook 2003 Junk filter.
This reduces the SPAM in the INBOX 4 times!

But the handling with a external makro is difficult.
I'm also very interessted in a solution to handle
Junk with Outlook Macros.
Maybe you find a solution? Could you publish, if you find,
under http://www.outlookcode.com - Samples ?

Your Outlook Jumpstart book is wonderfull.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Junk Mail filter in OL 2003 is not automatically moving junk mail Storygene Outlook - Installation 1 November 14th 06 06:15 PM
Junk Email - Obvious SPAM being overlooked Kevin Spencer Outlook - General Queries 10 June 19th 06 07:32 PM
How Can I Filter Spam/Junk Mail? sdavies6 Outlook Express 4 May 4th 06 09:23 PM
Junk email is enabled but not filtering any spam Mikez Outlook - Installation 0 March 14th 06 02:53 PM
automatically move spam emails to a junk folder Tony Young Outlook - General Queries 5 February 18th 06 02:53 PM


All times are GMT +1. The time now is 09:28 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.