Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1031
  • Last Modified:

Transport Rule To Filter By TimeStamp

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?
0
wjohnson1988
Asked:
wjohnson1988
  • 3
  • 2
1 Solution
 
BembiCEOCommented:
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
HeaderContainsMessageHeader
HeaderContainsWords

or
HeaderMatchesMessageHeader
HeaderMatchesPatterns

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...
0
 
wjohnson1988Author Commented:
Would a custom condition be a possibility? I'm not quite familiar in the writing of custom conditions from the shell.
0
 
BembiCEOCommented:
I wrote the power shell commands, what I can imagine to go into this direction.
But can't see any other possibility.
See:
http://technet.microsoft.com/en-us/library/bb125138.aspx

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.
0
 
wjohnson1988Author Commented:
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.
0
 
BembiCEOCommented:
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.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now