procmail
[Top] [All Lists]

Re: How to set date/time in .procmailrc

2002-04-24 08:32:06
On Wed, 24 Apr 2002, David W. Tamkin wrote:

Reidar asked,

| Can anyone tell me how to set date in .procmailrc to only send autoreply
| at specific times??
| When someone sends email to office(_at_)domainname(_dot_)com he or she gets 
an
| automatic reply, but now I only want this autoreply to be sent after
| 16.00 and before 09.00, Is there a way to do this without having to use
| telnet/ftp and removing the file ????

There are several.

First, if you have cron privileges on the machine, you could set up crontab
jobs to touch a zero-size file at 4 PM and to remove it at 9 AM on workdays;
then your procmail recipe could include a condition like this:

 * ? test -f thatfile

[...]

        I think thet Reidar wants to replay to _ALL_ the messages, but,
        doing the job in specific time in the day (not in the rush hours).

Bye,
 Udi

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail