Re: [exim] timed permission

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tony Finch
Ημερομηνία:  
Προς: Adrian Barker
Υ/ο: Exim-Users \(E-mail\), Ron McKeating
Αντικείμενο: Re: [exim] timed permission
On Thu, 27 Jan 2005, Adrian Barker wrote:
>
> We do this: email to all staff and students is sent out after 10 pm. We use
> the queryprogram router that returns a 'defer' for these recipient addresses
> if the time is between 7 am and 10 pm. It uses a simple Perl script and is the
> first router, but is only called for specified local_parts.


You can do this with a redirect router, which might be more efficient:

restrict_tod:
  driver      = redirect
  no_verify
  local_parts = +big_lists
  condition   = ${if match{$tod_log}{ (0[789]|1[0-9]|2[01]):} }
  data        = :defer: Off-peak only
  allow_defer


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}