Wiki edit of http://wiki.synchro.net/custom:messageheader by digital man: Overhaul to be more useful
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?
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: a 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...)
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.
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
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.
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.
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 25 |
Nodes: | 8 (0 / 8) |
Uptime: | 138:14:04 |
Calls: | 1,905 |
Calls today: | 1 |
Files: | 11,079 |
Messages: | 935,003 |