-=> Maurice Kinal wrote to Tony Langdon <=-
MK> -={ Tuesday, 26 April 2016, 03:16:19.455517199 +1000 }=-
MK> Hey Tony!
TL> Ahh OK, cool, a decent project then. :)
MK> It could be. Recently when asked about it I've been suggesting taking
MK> it up in the TUXPOWER echo but so far has taken up the cause. No big
MK> deal to me one way or the other.
Ahh, OK, no probs.
TL> Yes, I can see that being an issue!
MK> Here is how I am currently planning to handle it;
MK> IFS=$'\034' read -r ftn_DateTime To From Subject msg_body <<< \
MK> $(sed -n "${1}p" raw_msg.file | tr '\000' '\034')
MK> The above line can be used when replying to an existing message. For
MK> reading it is much simpler to just translate the nulls and other
MK> control codes depending on the targetted client terminal which is
MK> 'linux' in my particular case. However splitting the msg into five
MK> variables like the example read command does above would allow special
MK> treatment to each of the fields for display such as ansi colourization.
MK> Also I'd think there are elements in msg_body that might be better
MK> being split off from there such as kludges.
Yes, would be better handling kludges separately, because you can then apply
the ones that help your situation. Text manipulation is not my strongest suit
(in any language - it's a PITA ;) ), but I'm curious how your system works.
Will see if I can get onto TUXPOWER. :)
TL> it's a language I have a fair bit of experience with. :)
MK> If you're really interested then I think TUXPOWER is probably the place
MK> to discuss it in greater detail. Also I have found that posting
MK> scripts in Fidonet echoes to be a real PIA due to things like tab
MK> spaces, line lengths, etc. Perhaps something totally different could
MK> be discussed and experimented with there? That has been my way of
MK> thinking about it for some time now but so far it hasn't mattered any.
Yes, sounds like the place to go. I'm assuming it's a Fido echo, so I'll see
if I can get it from my uplink. :)
... Bit: The increment by which programmers slowly go mad
--- MultiMail/Win32 v0.49
* Origin: Freeway BBS - freeway.apana.org.au (3:633/410)
|