• [wiki.synchro.net] page changed: custom:messageheader

    From wiki.synchro.net@1:103/705 to All on Tuesday, April 16, 2019 02:47:06
    Wiki edit of http://wiki.synchro.net/custom:messageheader by digital man: Overhaul to be more useful
    --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Va7aqd@1:103/705 to digital man on Tuesday, April 16, 2019 11:44:22
    Re: [wiki.synchro.net] page changed: custom:messageheader
    By: wiki.synchro.net to All on Tue Apr 16 2019 02:47 am

    Wiki edit of http://wiki.synchro.net/custom:messageheader by digital man: Overhaul to be more useful

    One thing that's not explained in this wiki page is this: What is the stock/default Synchronet setup using as a message header by
    default? The files that are provided msgheaderexample.asc and msgheader.40col.asc don't seem to be what's used, so if someone
    wanted to make a really (simple?) change, say to flip the lines the To: and From: show on, what needs to be edited?

    I presume it's built in elsewhere and constructed on the fly, rather than using
    msgheader.asc, which might lead to less confusion
    if msgheader.asc existed? (Maybe just less confusion for me...)

    ---
    � Synchronet � VA7AQD's Tavern - bbs.isurf.ca
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From wiki.synchro.net@1:103/705 to All on Tuesday, April 16, 2019 20:31:17
    Wiki edit of http://wiki.synchro.net/custom:messageheader by digital man: Specify the default behavior for 40 and 80 cols
    --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Va7aqd on Tuesday, April 16, 2019 20:33:16
    Re: [wiki.synchro.net] page changed: custom:messageheader
    By: Va7aqd to digital man on Tue Apr 16 2019 11:44 am

    Re: [wiki.synchro.net] page changed: custom:messageheader
    By: wiki.synchro.net to All on Tue Apr 16 2019 02:47 am

    Wiki edit of http://wiki.synchro.net/custom:messageheader by digital m Overhaul to be more useful

    One thing that's not explained in this wiki page is this: What is the stock/default Synchronet setup using as a message header by
    default?

    I added more text to hopefully clarify that.

    The files that are provided msgheaderexample.asc and
    msgheader.40col.asc don't seem to be what's used,

    msghdr.40col.asc is used for 40-column terminals.

    so if someone
    wanted to make a really (simple?) change, say to flip the lines the To: a From: show on, what needs to be edited?

    You'd have to create msghdr.asc file.

    I presume it's built in elsewhere and constructed on the fly, rather than using msgheader.asc, which might lead to less confusion
    if msgheader.asc existed? (Maybe just less confusion for me...)

    It's msghdr.asc, but yeah, there is a built-in display method that uses the text.dat lines - but the order of the displayed header fields can't be easily changed.

    digital man

    This Is Spinal Tap quote #14:
    The Boston gig has been cancelled. [Don't] worry, it's not a big college town. Norco, CA WX: 56.4�F, 80.0% humidity, 7 mph ENE wind, 0.00 inches rain/24hrs --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Va7aqd@1:103/705 to Digital Man on Tuesday, April 16, 2019 22:35:43
    Re: [wiki.synchro.net] page changed: custom:messageheader
    By: Digital Man to Va7aqd on Tue Apr 16 2019 08:33 pm

    It's msghdr.asc, but yeah, there is a built-in display method that uses the text.dat lines - but the order of the displayed header fields can't be easily changed.

    Thanks for the clarifications! I went hunting, found the code in getmsg.cpp, and played around with an example msghdr.asc file.
    I've found a couple of caveats to the whole setup (or customization) though, that aren't mentioned:

    - If you use your own msghdr.*, avatars won't be displayed (or so it seems from
    this one test)
    - You can't use conditionals (can you?) in a msghdr.* file, but the built-in code does (may or may not show a header line like
    Attr)

    Those seem to be the ones I just noticed aren't described... and I point it out
    simply because it seems one can't get the same
    functionality out of the message header than the hard-coded one.

    Is there any thoughts on potentially changing that, so that rather than any default hard-coded, the functionality to display
    avatars and conditional headers could be put in some kind of syntax in a msghdr.* file?

    Just curious - wasn't too big a thing to change the .cpp to re-order From and To, but now I'll have to patch every update if I want
    to keep this change. It's also a bit tricky to move things like Subj: as the text.dat entry for it also has the graphic line tied
    to it.

    Thanks again for the additional clarifications.

    ---
    � Synchronet � VA7AQD's Tavern - bbs.isurf.ca
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Hustler@1:103/705 to Va7aqd on Wednesday, April 17, 2019 13:18:14
    Re: [wiki.synchro.net] page changed: custom:messageheader
    By: Va7aqd to Digital Man on Tue Apr 16 2019 10:35 pm

    It's msghdr.asc, but yeah, there is a built-in display method that
    uses the text.dat lines - but the order of the displayed header fields
    can't be easily changed.

    Thanks for the clarifications! I went hunting, found the code in getmsg.cpp, and played around with an example msghdr.asc file. I've found - If you use your own msghdr.*, avatars won't be displayed (or so it seems from this one test) - You can't use conditionals (can you?) in a msghdr.* Those seem to be the ones I just noticed aren't described... and I point it out simply because it seems one can't get the same functionality out of Is there any thoughts on potentially changing that, so that rather than any default hard-coded, the functionality to display avatars and

    Whoa! Thanks for pointing out to me that messing with the message header is a project in itself. I can't justify the time spent for a idle BBS. ;-)

    Hustler
    Sent from: Havens BBS havens.synchro.net











    Steve

    ---
    � Synchronet � Sent from Haven BBS. havens.synchro.net
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Hustler@1:103/705 to Va7aqd on Wednesday, April 17, 2019 13:23:21
    Re: [wiki.synchro.net] page changed: custom:messageheader
    By: Va7aqd to Digital Man on Tue Apr 16 2019 10:35 pm

    Just curious - wasn't too big a thing to change the .cpp to re-order From and To, but now I'll have to patch every update if I want to keep this change. It's also a bit tricky to move things like Subj: as the text.dat entry for it also has the graphic line tied to it.

    Ya know I didn't even think of the update thing Va7. Thanks for pointing that out. What was I thinking?? lol

    Hustler
    Sent from: Havens BBS havens.synchro.net











    Steve

    ... I'm not afraid of heights. I'm afraid of widths.

    ---
    � Synchronet � Sent from Haven BBS. havens.synchro.net
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Va7aqd on Monday, April 22, 2019 14:45:19
    Re: [wiki.synchro.net] page changed: custom:messageheader
    By: Va7aqd to Digital Man on Tue Apr 16 2019 10:35 pm

    Re: [wiki.synchro.net] page changed: custom:messageheader
    By: Digital Man to Va7aqd on Tue Apr 16 2019 08:33 pm

    It's msghdr.asc, but yeah, there is a built-in display method that uses the text.dat lines - but the order of the displayed header fields can't be easily changed.

    Thanks for the clarifications! I went hunting, found the code in getmsg.cpp, and played around with an example msghdr.asc file.
    I've found a couple of caveats to the whole setup (or customization) though, that aren't mentioned:

    - If you use your own msghdr.*, avatars won't be displayed (or so it seems from this one test)

    The msghdr.* method can display the avatars (using the included showmsgavatar.js module) - details here: http://wiki.synchro.net/module:avatars#section316

    - You can't use conditionals (can you?) in a msghdr.* file, but the built-in code does (may or may not show a header line like
    Attr)

    That's correct.

    Those seem to be the ones I just noticed aren't described... and I point it out simply because it seems one can't get the same
    functionality out of the message header than the hard-coded one.

    Yup.

    Is there any thoughts on potentially changing that, so that rather than any default hard-coded, the functionality to display
    avatars and conditional headers could be put in some kind of syntax in a msghdr.* file?

    There's really a 3rd option for the advanced sysop, and that would be replace the entire message header display with a .js module and then you could do whatever conditional display you wanted. Your msghdr.* file could just @exec your own custom message header display module which did all kinds of fancy conditional stuff if you wanted.

    Just curious - wasn't too big a thing to change the .cpp to re-order From and To, but now I'll have to patch every update if I want
    to keep this change. It's also a bit tricky to move things like Subj: as the text.dat entry for it also has the graphic line tied
    to it.

    Yup, and generally discouraged.

    Thanks again for the additional clarifications.

    No problem.

    digital man

    This Is Spinal Tap quote #8:
    Derek Smalls: Making a big thing out of it would have been a good idea.
    Norco, CA WX: 73.2�F, 48.0% humidity, 9 mph NE wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)