Hi Lawrence
Thanks for this. I'd pretty much come to the same conclusion myself, but
was kinda hoping that there'd be a better way!
I think I'm going to have to play with a few methods.
Incidentally, can anyone give me some hints on how things are read from
the imapd.conf file? I'd like to include some of my own config options in
it for the notify routines I'm working on.
I've played with config.c, but I can't see how it gets included.
Thanks again
Steve
On Tue, 14 Nov 2000, Lawrence Greenfield wrote:
> From: "Steve Campion" <[EMAIL PROTECTED]>
> Date: Tue, 14 Nov 2000 16:18:28 -0000
>
> Ideally, I'd like the notify() function to be called once per subscriber of
> the mailbox which is being delivered to.
>
> Can anyone give me some hints on this?
>
> There's no easy index of mailbox -> subscribers (assuming you mean
> SUBSCRIBE/UNSUBSCRIBE/LSUB), so the only way of pulling this data is
> to cycle through every user.sub file on the server. For a large
> number of users, this is quickly untenable.
>
> You could change the mboxlist_changesub() command to also maintain the
> reverse index, in which case this would be a lot more efficient.
>
> Larry
>
>