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
Solved

Outlook Rule For A Certain Time Period

Posted on 2014-11-26
7
2,493 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 80

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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Large Outlook files lead to various unwanted errors and corruption issues. Furthermore, large outlook files can also make Outlook take longer to start-up, search, navigate, and shut-down. So, In this article, i will discuss a method to make your Out…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
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…

828 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