Outlook rule - for junk email

neveu

Board Regular
Joined
Jan 27, 2009
Messages
225
hello,
i would need help in creating a rule that automatically forwards every email in the junk folder to a specific adress (there is a project to block all email marked as junk and for this we have to forward the junk email to a specific adress). in addition, i would need to permanently delete the junk email after it's beeing forwarded - also from junk email folder and from sent items folder.

can anyone advise?

thank you in advance,
neveu
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I'm using Outlook 2003, and according to Microsoft,

"Rules are now designed so that they do not act on messages that are moved to the Junk E-mail folder. "

So you cannot use a rule for this. What you need is a macro to periodically (i.e. manually) go through the junk folder and forward messages to the other address, then delete the email and delete the sent item.

To forward the item, set an object reference and then call the Forward Method. To delete the item from your Sent Items folder, set the DeleteAfterSubmit Property to True before sending the item. To delete the item itself, call the Delete Method after sending it. Of course, because you are deleting items from a folder you would want to step backwards through the folder.

Also, although it's none of my business what you do with messages that end up in your Junk folder, but I feel obligated to state that some of them might be emails you want. The Junk folder is for more than just known spam. If you have Outlook set up in 'whitelist' mode, ANY emails from previously unknown senders will go into the Junk email folder. Blocking a sender simply because they end up there wouldn't make sense.
 
Upvote 0
Hy JP,

thank you for your reply. unfortunatly I'm not at all experience with macros - do you think you could help me find a convient macro on the internet that would do whta i need?

the junk settings are set to low - so up to now in 99% of the cases i have recieved only spam in my junk folder.

thank you, looking forward for your reply

best regards,
neveu
 
Upvote 0

Forum statistics

Threads
1,223,975
Messages
6,175,745
Members
452,667
Latest member
vanessavalentino83

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top