On Thu, 2005-01-27 at 11:05 +0000, Tony Finch wrote:
> 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.
HI Tony, does this not check on who the email is going to, we want to
defer it depending on the sender address.
Ron
> --
> <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}}
>