On Nov 28, 2007 8:57 AM, alex_rosstech <[EMAIL PROTECTED]> wrote: > > > robert burrell donkin-2 wrote: > > > > i suggest that you take a look at the fetchmail source code. fetchmail > > runs as a periodic task and then inserts mail into the spool. > > > > FetchScheduler (1) loads the configuration and sets up the scheduling. > > MessageProcessor (2) injects mail into the spool (see sendMail). > > > > That looks very interesting. I first discarded the idea of using fetchmail, > because I need to have quite a lot of pop servers to pop from, and to be > able to add new ones dynamically without having to restart james. But I > could programmatically write the fetchmail config file..... then all I need > is to be able to re-initialize the FetchScheduler programmatically.....do > you know if this is possible? I'll look into it now...
though avalon is no longer state-of-the-art, it is a IoC container and the JAMES services are basically POJOs (plus some extra glue required by avalon). there is no reason to rewrite the configuration file when you can just (re)-configure directly (from Java). - robert
