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

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Jeremy Harris
日付:  
To: exim-users
題目: 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