Solved

Outlook Rule For A Certain Time Period

Posted on 2014-11-26
7
1,633 Views
Last Modified: 2015-03-17
I would like to setup an Outlook (we're on 2010 right now) rule to forward emails if the following criteria is met.

Email is received between:
00:00 and 07:59
or
12:00 and 12:59
or
17:00 and 24:00

I tried the following link, but it looks like Outlook isn't honoring the 24 hour clock because Outlook was forwarding emails at 3:00 PM
http://dan.folkes.me/2011/02/18/outlook-rule-only-at-specific-times/

Any ideas?
0
Comment
Question by:IT_Crowd
7 Comments
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 40467891
the article states it uses UTC time which unless you are in England you have to compute the time difference i.e. Eastern Standard is UTC -5, so I have to ADD 5 hours to the rule to make it work
0
 
LVL 2

Expert Comment

by:Jon Sverrisson
ID: 40469033
You can change the time zone under Options - Calendar -> scroll down to Time zones section.
Jon
0
 
LVL 76

Expert Comment

by:David Lee
ID: 40470812
Since the rule outlined in that article is a client-only rule (i.e. Outlook has to be running for the rule to work, why not simplify things and use a macro?  With a macro you won't have to edit it every year to adjust the date and it's a lot easier to spell out the times when you want to forward.  Something like this

Sub ForwardAtCertainTimes(Item As Outlook.MailItem)
    'On the next line, edit the address to forward to
    Const FWD_TO = "someone@company.com"
    Dim bolFwd As Boolean, olkFwd As Outlook.MailItem
    Select Case Time
        Case #12:00:00 AM# To #7:59:59 AM#, #12:00:00 PM# To #12:59:59 PM#, #5:00:00 PM# To #11:59:59 PM#
            bolFwd = True
    End Select
    If bolFwd Then
        Set olkFwd = Item.Forward
        olkFwd.To = FWD_TO
        olkFwd.Send
    End If
End Sub

Open in new window


To use this, add the code to Outlook (let me know if you need instructions for that), then create a rule that fires for all messages.  Set the rule's action to "run a script" and select this script as the one to run.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 13

Author Comment

by:IT_Crowd
ID: 40473575
Thanks guys - I will check on these solutions and report back!
0
 
LVL 13

Author Comment

by:IT_Crowd
ID: 40474152
I'm hoping to make this a server sided rule because I'd like to apply this to an account that I wouldn't normally open with Outlook (our Helpdesk account). Most of the time, I just open up OWA and modify any Helpdesk related rules.

I was able to get success using the Central Time Zone values instead of UTC. For instance:
"2014 11:" for 11:00.

My new issue is trying to tell Outlook/OWA that this is a message coming in from the AM or PM. My first thought was to set an importance level if the subject contained AM or PM (High Importance for AM and Low Importance for PM) and use that importance flag in a rule below that for the time frames that I want.

That didn't appear to work, though. Maybe because the incoming message didn't have an importance flag set by the sender?  

Anyone have any other ideas for this - it doesn't have to be done with importance flags.
0
 
LVL 13

Author Comment

by:IT_Crowd
ID: 40474153
To clarify, all this rule will be doing is forwarding the original email off as an attachment to a select few. Nothing else.
0
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 40474194
I don't see any way to do this as a server-side rule.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you don't know how to downgrade, my instructions below should be helpful.
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now