Subj : Gopher mods ??
To   : All
From : Finnigann
Date : Tue Apr 04 2006 09:38 am

From :
C:\sbbs\exec\gopherservice.js

case "sub":
   msgbase = new MsgBase(field[1]);
   if(msgbase.open!=undefined && msgbase.open()==false) {
        writeln("!ERROR " +  msgbase.last_error);
 break;
}
   if(Number(field[2])) {
        hdr=msgbase.get_msg_header(false,Number(field[2]));
        if(hdr.attr&MSG_DELETE)
 break;
        writeln("Subj : " + hdr.subject);
        writeln("To   : " + hdr.to);
        writeln("From : " + hdr.from);
        writeln("Date : " + system.timestr(hdr.when_written_time));
        writeln("");

        body=msgbase.get_msg_body(false,Number(field[2]),true,true)
        writeln(body);
        msgbase.close();
        break;

}


This is the display generated from the above code. (On a gopher page)

Re: The Forgotten Book Gandolf's Bbs All Mon Apr 03 2006 22:23:00
Re: The Forgotten Book Gandolf's Bbs All Mon Apr 03 2006 22:19:00




As you can see, it's not very clear as to what each word is for.
Nor does the page have a line saying what is being displayed.
(ie: SUBJECT :: FROM :: TO :: DATE)

I was wondering how to modify the javascript code to present a line
like:

Re: The Forgotten Book :: Gandolf's Bbs :: All :: 04/03/06 22:23:00
Re: The Forgotten Book :: Gandolf's Bbs :: All :: 04/03/06 22:19:00

Thus seperating the fields and shortening the date.

Extra points if you can add my example (properly spaced) to the top of
the page (-:

      SUBJECT         ::      FROM      ::     TO     ::     DATE
123456789012345678901234567890123456789012345678901234567890123456

Thanks!






       Don't just wish for a better life...

       Vote for it!


... Fruit is pretty honest about when it goes bad.
--- MultiMail/Win32 v0.46
� Synchronet � Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.net