[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] run sup (or sup-sync) as daemon Hello everybody,



Marc Seibert, 2010-12-03 02:41:
> So I wonder if its a good idea to remove my procmail rules and
> manage the whole thing in ruby over sup.

I did exactly that.  Hooks (especially before-add-message) are your
best friends.

> There is no daemon mode built in - if I got it right - so I want to
> write a cron job to sup-sync every ten minutes.

Why would you want to do that?  When sup is running, it polls
periodically for new mail.  When its not, why would you care?

You can think of sup-sync as parameterized way of doing what sup
itself does when it polls for new mail (only from sources that are
marked "usua", i.e. they are expected to receive new mail) and does
indexing.  Sup-sync comes handy when you start with sup and want to
index all the sources or want to restore a dump.  Other than that, sup
maintains index by itself by polling on start and periodically after
that.

--
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk