procmail
[Top] [All Lists]

Re: running a recipe only during certain hours

1999-06-20 08:54:27
When Liviu Daia wrote,

| > |     ... Or you can do it the other way around: save messages to a
| > | folder, and have a cron job forward them to your phone.

One thing I pointed out is that,

| > 2. The routine to save the messages to a folder would still need to
| > know the time of day, because messages that arrive during work hours
| > would not need to be spooled for the cron job that sends them to the
| > pager.

Dr. Daia followed up,

|     No.  If the cron job is not scheduled to run during work hours, no
| messages would get sent to the phone during that period.

Let me try again.

But if the time of day is not checked on incoming messages, all messages
that arrive during work hours would be spooled for the paging job, and when
the workday ends and the cron job runs, ZC's friend would get paged for all
the email that had come in all day long, not just for those that had come
since the workday ended.

The pages wouldn't come during work hours, but they'd still come (after work
ends) for email that arrived while ZC's friend was at work.