QQ11@LIVERPOOL.AC.UK (09/07/90)
Version 7.1.2 under HP-UX 7.0 A problem has come to light when in curses mode and using a vt100 terminal or emulation (haven't been able to try any other 'real' terminals). The following hdr_format string: set hdr_format="%18n %-2N%3M%2y %38s %-5l" is fine with line mode and the number of columns is displayed correctly and uses the full 80 columns. However the following behaviour is evident with curses: 1 "~/mbox": 211 messages, 0 new, 0 unread, 0 deleted [ lines removed ] 6 Bill Jones 16Aug90 Re: Timeout on shell command. 1?? 7 John Smith 16Aug90 Re: bell ?? [ rest removed ] There should be numbers displayed at the question marks but cols 79 and 80 are actually blank (the 1 shown above is from 100). Tests with a vt100 in 132 column mode were fine with no missing data. This seems to be a bug. It does not appear to be machine/un*x specific. Point 2: How can I introduce a facility that for a particular mail item, a 'Reply-To:' header will be used pointing towards a specific user@site? Yes I know I can use the 'edit headers' facility but not everyone is/will be happy with this. I would like to set up a cmd 'replyto' with an optional argument such that if no argument is given, the header points to me otherwise points to the given argument. Thanks Alan Thew University of Liverpool Computer Laboratory Bitnet/Earn: QQ11@LIVERPOOL.AC.UK or QQ11%UK.AC.LIVERPOOL @ UKACRL UUCP : ....!mcsun!ukc!liv!qq11 Voice: +44 51 794 3735 Internet : QQ11@LIVERPOOL.AC.UK or QQ11%LIVERPOOL.AC.UK @ NSFNET-RELAY.AC.UK
schaefer@ogicse.ogi.edu (Barton E. Schaefer) (09/10/90)
In article <90250.104756QQ11@LIVERPOOL.AC.UK> QQ11@LIVERPOOL.AC.UK writes: } Version 7.1.2 under HP-UX 7.0 } } [...] the following behaviour is evident with curses: [Sample omitted] } } There should be numbers displayed at the question marks but cols 79 and } 80 are actually blank (the 1 shown above is from 100). Mush won't display anything in the last screen column because some terminal types advance the cursor to the next line whenever anything is placed there. Some implementations of curses mis-handle this, and mush tries to work with the lowest common denominator in curses. There are several (a lot, actually) places in curses code scattered through several files where COLS-2 was (mistakenly?) used instead of COLS-1 in handling this problem. Dan can shed more light on reasons. It's been that way as long as curses mode has existed. Most people put the subject at the far right, so it's never been a problem. I don't think you're going to see curses mode using that far-right column, but we'll problably widen those COLS-2 to COLS-1 in the next patch. } Point 2: } How can I introduce a facility that for a particular mail item, a } 'Reply-To:' header will be used pointing towards a specific user@site? } Yes I know I can use the 'edit headers' facility but not everyone } is/will be happy with this. I would like to set up a cmd 'replyto' } with an optional argument such that if no argument is given, the } header points to me otherwise points to the given argument. The only way to create cmds with optional arguments is to source script files; conditionals are not handled from the command line. To address (pun) your specific question, the way to install the Reply-To: header is with a my_hdr command, thus my_hdr Reply-To: QQ11@LIVERPOOL.AC.UK (Alan Thew) So you want something like # Script to create a Reply-To: header # Place this script in $folder/.replyto # Usage: # cmd replyto "set args='\!*'; source +.replyto" # replyto address if "X$args:1" == X then # No arguments given, use the current address my_hdr Reply-To: "$USER"@"$hostname:1" ("$realname") else my_hdr Reply-To: "$args" endif To remove the header, you use un_hdr Reply-To: which of course could be another cmd .... -- Bart Schaefer schaefer@cse.ogi.edu