Jeremy Howard wrote:
> 
> As some of you may know, Cyrus has a hook that allows new mail notifications
> to be implemented. It comes with a Zephyr notification hook.
> 
> Creating your own notification hook requires writing a C function and
> compiling it in. I'm not that keen on that approach for two reasons:
> 
> * I'm no C guru
> * I don't want to recompile the server just to change the notification code.
> 

Why not provide a mechanism for storing these functions in dynamic
libraries, so they can be compiled/inserted independently of the server
code. I don't know how difficult this would be, as I've never done it
before, but 'man dlopen' makes it look reasonably straightforward.

That is not to discredit your method, which provides a perfectly good
solution for non-C gurus. :)

> The current notify() code does no error checking--I played around with using
> non-blocking sockets and select() to make things a bit more solid, but in
> the end I went with this more simple approach... This way even if the Perl
> daemon dies, the deliver process won't wait.
> 

You're no C guru, eh? It sounds like you know what you're talking about.
:)

-- 
Ross

Reply via email to