?
Solved

Outlook Rule For A Certain Time Period

Posted on 2014-11-26
7
Medium Priority
?
3,845 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 82

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
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
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 1500 total points
ID: 40474194
I don't see any way to do this as a server-side rule.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
In this article I discuss my selections of the Top Four free Outlook OST File Viewers available. Open, view and read even damaged OST files by using these tools. They all provide a clear preview of all data such as emails, notes, tasks, calendars, e…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…
Suggested Courses
Course of the Month14 days, 23 hours left to enroll

770 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