On 2000.07.26, in <[EMAIL PROTECTED]>,
        "Nils Vogels" <[EMAIL PROTECTED]> wrote:
> Hmm.. procmail sounds indeed better than mutt, but this leaves me with quite a
> new challenge: how do i make procmail run a piece of its config file only once
> a month, and not on every mail delivery ? ;-)
> 
> I guess that would be beyond the scope of this list, but if anyone has ideas
> .. pls, don't be shy :)

I have procmail deliver to ~/Mail/lists/listname.  Each "listname" in
that directory is a symlink to ~/Mail/lists/monthly/listname-YYYYMM or
to ~/Mail/lists/annual/listname-YYYY.  A cron job rewrites the symlinks
once a month using a Makefile designed for handling the links.

What's convenient here is that the targets for the symlinks don't need
to exist: procmail will create them any time it chases a link to
deliver a message.  (For mbox folders, anyway; you'd need to do mkdirs
for mh drops.)

What's also convenient is that the current month's filename is always
the same.  If I know I saw something recently, and want to check the
archive, it's always the same command no matter when today is.

I'll send you my Makefile if you want it.  It's the only special
component I use, modulo the procmail rules (which you need to do for
yourself, anyway).  No other scripts or anything.

-- 
 -D.    [EMAIL PROTECTED]        NSIT    University of Chicago

Reply via email to