Transport Rule To Filter By TimeStamp

Posted on 2012-09-19
Last Modified: 2012-09-20
I'm trying to figure out a way to filter emails based on their time stamps. Essentially I'm thinking of a transport rule that when the exchange server receives the email, it scans the email for the timestamp, what if the time stamp is within a certain time range, move it to another folder or copy another email account.

Any thoughts?
Question by:wjohnson1988
    LVL 35

    Expert Comment

    Not quite sure what is the sense of this, as an email is usually ditributet at ones.
    With power shell, i can not see any date related filters at all, neverless you can analyse the Header information.

    The Set-Transport-Rule or New-Trasport-Rule has


    but both of them filter to an excact match, not to larger or smaller.

    So I don't really see a possibility with transport rules...

    Author Comment

    Would a custom condition be a possibility? I'm not quite familiar in the writing of custom conditions from the shell.
    LVL 35

    Expert Comment

    I wrote the power shell commands, what I can imagine to go into this direction.
    But can't see any other possibility.

    What you can do anyway, you can write your own transport agent. With Visual Studio, you can try to filter out the dates from the Header routing  and do something with these mails.

    Nevertheless I#m not quite sure, what you intend to do. If the mail path is correct, all dates in the header has a difference of a few seconds. So not quite sure, what you want to filter.

    Another point are the received dates in Outlook. But these dates has nothing to do with the transport and are dates, stored in the mail store, not in the mail itself. And Exchange Transport rules can only filter, what they can find in the mail headers.  

    Outlook has a predefined rule based on the received date. But such rules only work, if Outlook is open.

    Author Comment

    So the headers have a date field, what I'm attempting to do is have mail for specific emails delivered during a specific time range on specific dates be delivered to a specific folder. Note this is for a specific mailbox.
    LVL 35

    Accepted Solution

    So you mean, you want to reroute all mails, which are addressed to a specific user
    on Mo, Tue, Fr between 08:00 and 17:00 or something into this direction.

    The only thing I can see it to use the Out of Office assistant, but there you can only define one single item.
    The other option is to use a client rule, but they allow only dates, not times, and you would have to create one rule for each date (scope) and outlook has to run.

    So, I end up with writing your own transport agent
    I can't see any other possibility.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do email signature updates give you a headache?

    Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

    Use email signature images to promote corporate certifications and industry awards.
    Easy CSR creation in Exchange 2007,2010 and 2013
    To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
    In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

    779 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

    11 Experts available now in Live!

    Get 1:1 Help Now