On Mon, 2009-06-15 at 01:58 -0600, LuKreme wrote:
> On 15-Jun-2009, at 01:09, EASY steve.h...@digitalcertainty.co.uk wrote:
> > Probably a stupid question, but in practical terms is it possible to
> > set
> > a header filter that will reject (or ideally defer) mail on time
> > range?
> > For example during the hours of 00:00 -> 07:00.
>
> Erm.. well, yes, you COULD do that, but why?
>
> $ cat header_checks.pcre
> # Emails with erroneous dates (or dates far in the past) will appear
> at the top or bottom of your mail client.
> /^Date:.* 19[0-9][0-9]/ REJECT Your email has a date from the past.
> Fix your system clock and try again.
> /^Date:.* 200[0-8]/ REJECT Your email has a date from the past.
> Fix your system clock and try again.
> /^Date:.* 20[1-9][0-9]/ REJECT Your email has a date from the
> future. Fix your system clock and try again.
>
> That should give you the idea...
Thanks - I'll play with this
>
> > I appreciate that the action will probably have to be 'reject' if it
> > is
> > possible at all. Has anyone tried/implemented this and what are the
> > thoughts/comments on it.
>
> Well, it seems like a spectacularly bad idea to me...
>
Normally I would agree, but in an experimental environment it's worth
playing with to evaluate. Look at it like this, if you go to the
supermarket when it is closed for business you don't expect to be able
to get in :-)