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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jeremy Harris
Date:  
À: exim-users
Sujet: 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