Forum OpenACS Development: Re: Getting package_id in an init.tcl script

Posted by Don Baccus on
Why do you need it to happen on server restart?  The notion is that you'll define your after_mount callback, then every time the package is mounted by the APM it will mount notifications.

If you're needing to patch up an already-running site that has bulk mail mounted already you'll have to do some gnarly hacking around in your init code.  Remember it only gets called once, not once per mounted instance (*-init.tcl files are sourced by the bootstrapper) so you'll have to traverse the site map looking for bulk mail instance.

But you'd only have to do that once, you don't want to mount a new instance of attachments every time the server restarts!!!