Solved

Outlook Rule For A Certain Time Period

Posted on 2014-11-26
7
2,205 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 79

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Many people use more than one email account and so it becomes difficult for them to manage them when they use separate accounts,  so, in this article, I have shared an easy way to add Other Mail Accounts in your Google Inbox. It helps to combine all…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
how to add IIS SMTP to handle application/Scanner relays into office 365.

832 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