procmail
[Top] [All Lists]

Recipes based on date and time

1996-10-29 06:11:51

        This topic might have already discussed over the list, but as I do
not change my procmail frequently, I'm not on the list... so please send a
copy of any answer.

        I just want to make some of my recipes being taken in account only
during certain periods, typically at business hours.
        For instance, I receive through a mail alias some personal E-mails
at office. Right now, those mails are put in a special folder for later
reading. But often at home I accessed the same mailspool with POP and would
like those personal E-mail to stay in the system mailbox.

        So the recipe "put personal mail in the appropriate folder" would
have to become "put personal mail in appropriate folder if business hours". 

        I can figure how to do this using crontab to set up a flag file and
making procmail test the presence of this flag, but do you procmail gurus
have a more convenient way to achieve this ?

        Thanks in advance,

                                  Gilles
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 La betise humaine est la seule chose 
  qui donne une idee de l'infini.                           -- Ernest RENAN

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