Re: [exim] regex expression to weed out emails sent during c…

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-users
Subject: Re: [exim] regex expression to weed out emails sent during certain times of day (12 hour time)
On 15/03/16 20:33, Pj wrote:
> i need help setting up a simple regex expression to catch and filter all
> emails received from 5am to 1am


Assuming you mean "deny everything between 01:00 and 05:00 -

deny
 set acl_m_hour = ${sg {$tod_full} {\N^.* (\d\d):.*$\N} {\$1}}
 condition =      ${if >= {$acl_m_hour} {1}}
 condition =      ${if <= ${acl_m_hour} {5}}


--
Cheers,
Jeremy