procmail
[Top] [All Lists]

Re: How to set date/time in .procmailrc

2002-04-24 23:18:33
Hi, and thanks!!
No I dont have cron privileges, I only have a user account (ftp, Telnet)..

1) I only want the reply to be sent back to the "user" who sends a message to
office(_at_)mydomain(_dot_)com, not if he sends a message to 
backoffice(_at_)mydomain(_dot_)com or
reidar(_at_)mydomain(_dot_)com and so on. Not to replay to _ALL_ the messages!

2) My "problem" is that I want to send the autoreply at specfic times, (after
office hours), and I want it to be done automatically, without having to use
telnet and removing the .procmailrc file. I want the auto reply to be 
"activated"
at 16.00 hours and "removed" at 09.00 hours, monday to friday and "activated" 24
hours a day during saturday to sunday.

Is there a way to do that??

My recipe works now as it is!
I only want it to automatically send auto-replies after 4 PM and stop sending
autoreplies after 9 AM on workdays...  and.... sending auto-replies 24h a day
during weekends (saturday to sunday).


\\Reidar



Udi Mottelo wrote:

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

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