> I agree that the FS is a great database - for some applications. (just
> like an RDBMS is a horrible choice for some applications). I think in
> this case, though, I would like a bulletin system that's a bit more
> flexible - ie, I'd like to be able to set up a bulletin that specifies
>
> Date it's valid from
> Date it's valid to
> People it should go to (ie, not EVERYONE)
>
> I'm not familiar with qualcomm's pop bulletin facility so if I'm about
> to duplicate something, please forgive me.
Qpopper has a very simple scheme -- bulletins are numbered sequentially
and put in /var/bulletins with names like 1-crash, 2-reboot,
3-phone_problems, and so forth. (Anything in the name after the digit
string doesn't matter.) Every POP user has a file called something like
.qpopper which lists the highest numbered bulletin that the user has read.
When a POP session starts, qpopper looks at .qpopper and at the bulletin
directory, treats unread bulletins like new mail, and updates .qpopper
when done.
This way, when there's a new bulletin, you just dump it in the bulletin
directory with an appropriate name. When the bulletin's out of date, you
delete it.
Advantages over treating as mail messages:
-- much faster to create bulletins, don't need 20K links and 20K
directory entries
-- obsolete bulletins can be deleted easily
-- inactive accounts don't fill up with stale bulletins
If you want multiple bulletin categories, I'd suggest making multiple
bulletin directories, with symlinks from the Maildirs to the bulletin
directories to mark which users are interested in which bulletin
categories. On the other hand, as soon as you get that complicated,
I wonder whether local newsgroups wouldn't be more appropriate.
Regards,
John Levine, johnl@iecc.com,
http://iecc.com/johnl, Trumansburg NY
Primary Perpetrator of "The Internet for Dummies"
and Information Superhighwayman wanna-be