procmail
[Top] [All Lists]

Re: Autoresponder question

1997-04-18 07:27:00
I use the following autoresponder when I'm away. This one implements an ACK  
once. But I would like that people get max one ACK per week.

How can I do that?

Here's a simple solution:

If you have access to your system's cron facility, you can run a cron job
once a week that deletes your vacation.cache file.  On many flavors of
unix, you can use 'crontab -e' to edit your crontab file; the crontab man
page usually has a good explanation of syntax.

Of course, if you're not able to use cron, the above solution won't work.
However, you could achieve the same effect, with a little more work,
through use of the 'find' command, and a datestamp file (i.e., when you do
the vacation.cache check, include a seperate condition that uses find to
(1) determine if the cache file is more than one week old; (2) if it is,
delete the cache file, and (3) update the datestamp file.

How to implement this is left as an exercise for the the reader, since
I've got a meeting to be at in a few minutes.  If no one has a more
graceful solution (and I'm confident someone will), I might work this out
later today.

-- Lars

---
Lars Kellogg-Stedman * lars(_at_)bu(_dot_)edu * (617)353-8277
Office of Information Technology, Boston University


<Prev in Thread] Current Thread [Next in Thread>