[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A Statice question



    Date: Tue, 21 Mar 89 18:08+0100
    From: mcvax!gmdzi!sysiphos!JC@uunet.UU.NET (Juergen Christoffel)

    I thought about storing special (mail) messages inside a db and now
    wonder where to put message bodies. How do you store such chunks of data
    in Statice?

    I can imagine two possible solutions: 

    a) designing records which keep headers and keywords and other important
    stuff, while putting messages into LMFS files and storing pointers
    (pathnames) into the records.

    b) keep the message bodies in data records too by using sequences of
    statice:limited-string or statice:string type fields. (The latter one
    would force me to parse these strings into lines when needed?!)

    How would one do it and why? Any other suggestions? Thanks.

I've written a toy mail system in Statice that simply keeps the message
text as a single string.  It seems to work OK, since it these big
strings aren't modified after creation.  Surely it shouldn't be
necessary to store the message text outside of Statice, though a more
wieldy representation such as a list of lines might have some
advantages.